https://supertokens.com/ logo
Title
i

Iruizmar

12/06/2022, 9:29 AM
Hey! 👋 I'm using the FDI because none of the client SDKs applies to my tech stack and I'm getting a 500 error when trying to refresh the session when the access token is expired. I know I'm sending the correct parameters because it works if I send the refresh session request before the access token is expired. Any direction on how to investigate the issue? The backend is written in NestJs.
r

rp

12/06/2022, 9:30 AM
hey @Iruizmar which frontend are you using btw?
Also, can you add an error handler on the nestjs backend and log out the error object?
i

Iruizmar

12/06/2022, 9:31 AM
It's a Kotlin Multiplatform app (web, Android and iOS). Network code is written purely in Kotlin (not Java) and, thus, can't use the Android SDK.
This is all I'm getting:
ERROR [ExceptionsHandler] SuperTokens core threw an error for a POST request to path: '/recipe/session/refresh' with status code: 500 and message: Internal Error
r

rp

12/06/2022, 9:31 AM
hmm. Interesting
Right. Can you see the logs in the core?
i

Iruizmar

12/06/2022, 9:32 AM
Core is managed, is there a console on the app?
r

rp

12/06/2022, 9:33 AM
i see. let me check
does this error happen all the time? or just occasionally ?
i

Iruizmar

12/06/2022, 9:34 AM
All the time
If the access token is expired
r

rp

12/06/2022, 9:34 AM
can you DM me the email you used to sign up?
for our service
i

Iruizmar

12/06/2022, 9:34 AM
Yes, sure
r

rp

12/06/2022, 9:36 AM
So i don;'t think there is any issue on your side. It's probably our dev insatance - we reduced the number of connections in the connection pool size for the db connection for dev env yest which might be causing this issue
Pleas give us sometime to fix this.
i

Iruizmar

12/06/2022, 9:36 AM
Ok, thanks very much for it!
r

rp

12/06/2022, 10:51 AM
hey @Iruizmar can you please try this again?
i

Iruizmar

12/06/2022, 8:52 PM
Hey! Sorry for the super late response, I was afk. It did work 🙂 Thanks for whatever you did to fix it!
And the fast support, by the way. That's Supertokens' superpower.