Error 500 on page reload (Cannot use 'in' operator to search for 'catch' in undefined)
See original GitHub issueVersion
@nuxtjs/supabase: 0.2.0 and 0.2.1 nuxt: 3.0.0-rc.12 and 3.0.0-rc.11
Steps to reproduce
I haven’t quite figured out how to trigger it yet, but I mostly it happens after you stayed logged in for over a hour without doing anything and then refresh the browser window. After a 2nd refresh it does work normally again.
What is Expected?
Not to run into a error 500
What is actually happening?
Showing a error 500 on page reload
Cannot use 'in' operator to search for 'catch' in undefined
at Module.executeAsync (./node_modules/unctx/dist/index.mjs:93:15)
at ./node_modules/@nuxtjs/supabase/dist/runtime/plugins/supabase.server.mjs:24:49
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.callAsync (./node_modules/unctx/dist/index.mjs:53:16)
at async applyPlugin (./node_modules/nuxt/dist/app/nuxt.mjs:94:23)
at async Module.applyPlugins (./node_modules/nuxt/dist/app/nuxt.mjs:104:5)
at async createNuxtAppServer (./node_modules/nuxt/dist/app/entry.mjs:30:7)
at async default (./node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs:27:18)
at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:172:19)
Does anyone have a idea what could cause it?
I have already reinstalled the node_modules folder and cleared the lock file.
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:9 (1 by maintainers)
Top Results From Across the Web
TypeError: cannot use 'in' operator to search for 'x' in 'y'
The operand can't be null or undefined Make sure the object you are inspecting isn't actually null or undefined . The in operator...
Read more >Uncaught TypeError: Cannot use 'in' operator to search for ' ...
You may get this error if you are using a string as an array. Say that if you got a json from an...
Read more >Cannot use 'in' operator to search for 'window' in undefined
I'm getting a Cannot use 'in' operator to search for 'window' in undefined error on my browser. I've traced it back to ded/reqwest#259...
Read more >How to fix -> Uncaught TypeError: Cannot use 'in' operator ...
Uncaught TypeError: Cannot use 'in' operator to search for 'length' in at s (jQuery-2.1.4.min.js:2) at Function.each (jQuery-2.1.4.min.js:2) at Object.success ( ...
Read more >HTTP 500 Internal Server Error: What It Means & How to Fix It
This error is a server response to stop sending requests because of overloaded resources. This code might show up if your site needs...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@larbish I think you can use
navigateTo
again, given the underlying issue was fixed in https://github.com/unjs/unctx/pull/43Can confirm it’s working with
v0.2.5
. Thank you very much for the fix! @larbish