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 was facing issue similar to this when using better auth nuxt module.
Cloudflare Logs:
GET https://nuxthub-better-auth-repro.jdsolanki0001.workers.dev/ - Ok @ 25/3/2026, 12:04:21 am
GET https://nuxthub-better-auth-repro.jdsolanki0001.workers.dev/api/auth/get-session - Ok @ 25/3/2026, 12:04:22 am
(error) 2026-03-24T18:34:22.461Z ERROR [Better Auth]: INTERNAL_SERVER_ERROR Error: Failed query: select "id", "expires_at", "token", "created_at", "updated_at", "ip_address", "user_agent", "user_id" from "session" where "session"."token" = $1
params: CfZ7HikYQH641Nxsp4nT6DyuMSb7NMTb
Previously I migrated my main project to NuxtHub + better-auth nuxt module but I was facing same error so I thought I might have misconfigured something because it was large project so I started from scratch and while I reached auth part I'm now facing same thing.
Sometime you may encounter error "Worker exceeded CPU time limit (503)" so kindly error that assuming it's not related to this issue but I'm not sure though. Have a look for 500 errors
Additional Context
I believe this is due to singleton of betterAuth and I'm not sure if this is handled in this module.
Hi 👋🏻
Description
I was facing issue similar to this when using better auth nuxt module.
Cloudflare Logs:
Previously I migrated my main project to NuxtHub + better-auth nuxt module but I was facing same error so I thought I might have misconfigured something because it was large project so I started from scratch and while I reached auth part I'm now facing same thing.
Reproduction
To reproduce this, I created:
Reproduction repo: https://github.com/jd-solanki/nuxthub-better-auth-repro
Steps:
nuxt.config.ts(🚨🚨🚨 IMPORTANT)npx wrangler tail <worker-name>to see logs in terminal/register,/login&/apppage you may get error like mentioned above that it fails to queryScreenshot:

Error:
Live demo: https://nuxthub-better-auth-repro.jdsolanki0001.workers.dev/login
Note
Sometime you may encounter error "Worker exceeded CPU time limit (503)" so kindly error that assuming it's not related to this issue but I'm not sure though. Have a look for
500errorsAdditional Context
I believe this is due to singleton of betterAuth and I'm not sure if this is handled in this module.
Reference: better-auth/better-auth#969 (comment)