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
I'm seeing the below error quite a bit in the logs on Vercel but don't see it locally at all.
I have not tracked it down to what part of my own code that provokes this error to happen but will post here when/if I track it down. However, I have the following code in my middleware.ts and I suspect that to be the place that triggers the error below.
I'm not making any direct calls to /api/v1/users/me but I call await stackServerApp.getUser() a lot of places in my application.
StackAssertionError: Failed to send request to https://api.stack-auth.com/api/v1/users/me: 508 Infinite loop detected
INFINITE_LOOP_DETECTED
This is likely an error in Stack. Please make sure you are running the newest version and report it.
at (node_modules/@stackframe/stack-shared/dist/interface/clientInterface.js:260:0)
at (node_modules/@stackframe/stack-shared/dist/utils/results.js:122:0)
at (node_modules/@stackframe/stack-shared/dist/interface/clientInterface.js:72:0)
at (node_modules/@stackframe/stack-shared/dist/interface/clientInterface.js:135:0)
at (node_modules/@stackframe/stack-shared/dist/interface/serverInterface.js:12:0)
at (node_modules/@stackframe/stack-shared/dist/interface/serverInterface.js:22:25)
at (node_modules/@stackframe/stack-shared/dist/interface/serverInterface.js:44:0)
at (node_modules/@stackframe/stack/dist/esm/lib/stack-app.js:1264:0)
at (node_modules/@stackframe/stack/dist/esm/lib/stack-app.js:120:0)
at (node_modules/@stackframe/stack-shared/dist/utils/caches.js:43:0)
The text was updated successfully, but these errors were encountered:
We have spent hours looking into this problem and still haven't figured out why. It seems like this only happened on Vercel starting recently and has no negative effect except for the error log. We will continue to investigate, but for now, you can probably just ignore this error.
I'm seeing the below error quite a bit in the logs on Vercel but don't see it locally at all.
I have not tracked it down to what part of my own code that provokes this error to happen but will post here when/if I track it down. However, I have the following code in my
middleware.ts
and I suspect that to be the place that triggers the error below.I'm not making any direct calls to
/api/v1/users/me
but I callawait stackServerApp.getUser()
a lot of places in my application.Versions
"@stackframe/stack": "^2.6.12"
"next": "14.2.15"
Error
The text was updated successfully, but these errors were encountered: