question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 500 on page reload (Cannot use 'in' operator to search for 'catch' in undefined)

See original GitHub issue

Version

@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:closed
  • Created a year ago
  • Reactions:5
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
manniLcommented, Dec 3, 2022

@larbish I think you can use navigateTo again, given the underlying issue was fixed in https://github.com/unjs/unctx/pull/43

1reaction
Ponkhycommented, Nov 15, 2022

Can confirm it’s working with v0.2.5. Thank you very much for the fix! @larbish

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found