© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
17 replies
raae (queen.raae.codes)

getUser error in supabase-js v2 server side

I get the following error:
- Node v16 locally using supabase-js v2
- Node v18 Gatsby Cloud using supabase-js v2
I do not get the following error:
- Noce v18 locally using supabase-js v2
- Node v16 locally using supabase-js v1
- Node v18 Gatsby Cloud using supabase-js v1

The error:
(node:9) UnhandledPromiseRejectionWarning: TypeError: Right-hand side of 'instanceof' is not an object at /tmp/55fe830c-c9b9-5321-be71-95aa92bd9b63/index.js:18036:17 at Generator.next () at fulfilled (/tmp/55fe830c-c9b9-5321-be71-95aa92bd9b63/index.js:18025:58) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

16:16:13 PM:
(node:9) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 28)
(node:9) UnhandledPromiseRejectionWarning: TypeError: Right-hand side of 'instanceof' is not an object at /tmp/55fe830c-c9b9-5321-be71-95aa92bd9b63/index.js:18036:17 at Generator.next () at fulfilled (/tmp/55fe830c-c9b9-5321-be71-95aa92bd9b63/index.js:18025:58) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

16:16:13 PM:
(node:9) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 28)
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

supabase-js v2 runtime error with SvelteKit
SupabaseSSupabase / help-and-questions
4y ago
Using Supabase in NextJS Server Side
SupabaseSSupabase / help-and-questions
14mo ago
Next.js and Supabase v2
SupabaseSSupabase / help-and-questions
4y ago
Supabase getUser() returns undefined
SupabaseSSupabase / help-and-questions
7mo ago