You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine. I can use the /sessions/whoami endpoint on a 24 hour token. But after 10 minutes or so of inactivity I will get a 401 from that endpoint for 1-2 requests. And then I get the correct session response again.
Looking at the logs, it looks like Kratos is having a SQL connection error. It very much looks like a stale connection issue. I do know that RDS Proxy kills inactive connections after some time.
Is there better query parameters to use on the DSN URL? The application should be able to handle this since it is a common setup.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We use RDS Proxy for PostgreSQL. We currently have Kratos configured with the standard DSN:
This works fine. I can use the
/sessions/whoami
endpoint on a 24 hour token. But after 10 minutes or so of inactivity I will get a 401 from that endpoint for 1-2 requests. And then I get the correct session response again.Looking at the logs, it looks like Kratos is having a SQL connection error. It very much looks like a stale connection issue. I do know that RDS Proxy kills inactive connections after some time.
Is there better query parameters to use on the DSN URL? The application should be able to handle this since it is a common setup.
Beta Was this translation helpful? Give feedback.
All reactions