Sveltekit + Lucia: Error: The script will never generate a response.

A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished.
✘ [ERROR] Uncaught (in response) Error: The script will never generate a response.
A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished.
✘ [ERROR] Uncaught (in response) Error: The script will never generate a response.
Command to run sveltekit:
"dev": "wrangler pages dev .svelte-kit/cloudflare --port 5173",
"dev": "wrangler pages dev .svelte-kit/cloudflare --port 5173",
I'm curious if I'm doing something wrong or if the lucia library itself has a "hanging" promise within the helper function I'm using... Has anyone deployed Lucia + Sveltekit in cloudflare pages?
No description
1 Reply
goofysystem
goofysystemOP14mo ago
The actual reason was connecting to @libsql/client/web with the wss:// instead of https://
Want results from more Discord servers?
Add your server