500 Server Error until Kinde Cookie is deleted in Nuxt
Users keep getting 500 Server Error, whenever app domain changes and callback url changes, or another Kinde Web app logs out.
We've been solving this by clearing Kinde Cookies in the browser application settings
This is what appears in our logs:
2 Replies
Hi Hillary, thanks for sharing this. To reproduce and escalate internally, could you clarify:
- Does the 500 happen specifically while logging in or when your app is calling other associated APIs?
- Does it also happen after changing/adding callback URLs, or after logging out of another Kinde app in the same browser?
- Could you outline the exact steps (browser, domain, URLs, and at what point the 500 appears)?
This might be something fundamental on our side, but I’ll need a reproducible case to take it to the internal team.
Thanks a lot.
Thanks a lot.
Hi Roshan, while trying to reproduce the issue, I figured that the 500 Server Error we had a while back has probably been resolved - it might have been incorrect callbacks. Can't recall exactly what caused them, but it usually happened when we added a custom domain after having logged in using the default cloud provider's app url. Then when using the new URL, that's where the error would occur.
Quick Update is that I've now resolved the current build issues we were facing. After doing some research, I found similar problems reported with Vue
The issue we were experiencing was that certain packages weren't being properly handled during the build process, leading to module resolution errors in production.
The problems I faced included:
1. Vue module resolution error:
Cannot find module 'vue/index.mjs'
2. Entities package export error: Package subpath './lib/decode.js' is not defined by "exports"
3. Estree-walker default export error: The requested module 'estree-walker' does not provide an export named 'default'
and the solution I applied is that I updated our nuxt.config.ts
to properly handle these packages by adding them to the transpile list
and module side effects
:
rollupConfig.external: []
prevents these packages from being treated as external dependencies
The fix ensured that npm run start
and bun run start
worked correctly after building our application.