I know this issue isn't entirely Ruby-specific, but I'm sure lots of RoR people use Passenger so maybe someone's seen this...I'd be logged out. The only way I could get the 401 to go away was if I restarted nginx.
I'm working on an SPA calling a RESTful API driven by Rails/Passenger/nginx. I did notice that on occasion, despite having already logged into the SPA, if I access a page that called a JWT token-protected endpoint, the API would return a 401 error and
After some googling, I found this: https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_pool_idle_time
And I thought the solution was to assign the value to 0 to allow for no timing out. I went ahead and did this and restarted the service to make the value take effect, but the 401 error came back again after a bit of idle time.
I also upped the idle time to 86400 seconds to see if that has any effect, but my API still fails after ~5 minutes. Has anyone seen this, and what did you do to solve the issue?
Thanks,
- Joe
I know this issue isn't entirely Ruby-specific, but I'm sure lots of RoR people use Passenger so maybe someone's seen this...I'd be logged out. The only way I could get the 401 to go away was if I restarted nginx.
I'm working on an SPA calling a RESTful API driven by Rails/Passenger/nginx. I did notice that on occasion, despite having already logged into the SPA, if I access a page that called a JWT token-protected endpoint, the API would return a 401 error and
After some googling, I found this: https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_pool_idle_time
And I thought the solution was to assign the value to 0 to allow for no timing out. I went ahead and did this and restarted the service to make the value take effect, but the 401 error came back again after a bit of idle time.
I also upped the idle time to 86400 seconds to see if that has any effect, but my API still fails after ~5 minutes. Has anyone seen this, and what did you do to solve the issue?
Thanks,
- Joe
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 36:39:05 |
Calls: | 6,648 |
Calls today: | 3 |
Files: | 12,193 |
Messages: | 5,329,035 |