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 trying to get the library working when deploying to Vercel. I have copied the minimal example and it seems to work fine when running it locally. But when deploying to Vercel it fails saying
This Edge Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERROR
Code: EDGE_FUNCTION_INVOCATION_FAILED
ID: sfo1::tt25x-1733286729047-39138c735356
and the logs are showing
TypeError: Cannot read properties of undefined (reading 'name')
at (node_modules/next/dist/compiled/@edge-runtime/cookies/index.js:194:0)
at (node_modules/next-firebase-auth-edge/browser/next/cookies/parser/RequestCookiesProvider.js:14:0)
at (node_modules/next-firebase-auth-edge/browser/next/cookies/parser/CookieParserFactory.js:34:0)
at (node_modules/next-firebase-auth-edge/browser/next/cookies/parser/CookieParserFactory.js:51:34)
at (node_modules/next-firebase-auth-edge/browser/next/tokens.js:17:38)
at (node_modules/next-firebase-auth-edge/browser/next/middleware.js:108:29)
at (middleware.ts:8:9)
at (node_modules/next/dist/esm/server/web/adapter.js:212:89)
at (node_modules/next/dist/esm/server/web/adapter.js:212:49)
Since it is working locally but not when deployed, my best guess is that I have screwed up environment variables somehow, but not sure what.
I have some set through .env.production and some are set inside Vercel
Does the stacktrace tell you anything from here? Or do you have some tips on how I should continue debugging the issue?
The text was updated successfully, but these errors were encountered:
Small update:
I tried debugging this more, and now think that maybe I had an issue with old cookies or something. After trying to remove code to find the issue and then adding it back, I now have the same code and it is working to log in (on the deployment from my branch).
I am still getting the same error in the logs though, which is a bit unfortunate since it is making it harder to look for other errors
I'm trying to get the library working when deploying to Vercel. I have copied the minimal example and it seems to work fine when running it locally. But when deploying to Vercel it fails saying
and the logs are showing
Since it is working locally but not when deployed, my best guess is that I have screwed up environment variables somehow, but not sure what.
I have some set through .env.production and some are set inside Vercel
Does the stacktrace tell you anything from here? Or do you have some tips on how I should continue debugging the issue?
The text was updated successfully, but these errors were encountered: