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
Sometimes after fresh deployment to Deno Deploy my API is stucked with error relation "..." does not exist
I do nothing and after some time without any changes in code and configs it starts working again perfectly...
How it possible?.. I think the problem could be in the Deno Deploy and how they are sharing resources between lambdas... But I'm still investigating
Maybe somebody has same problem?
Expected result
It should works fine
Actual result
It works bad sometimes
Environment
Deno Deploy @neondatabase/serverlessv0.9.3 from npm
Logs, links
error: error: relation "users" does not exist
at sn.parseErrorMessage (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1182:6)
at sn.handlePacket (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1143:13)
at sn.parse (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1127:36)
at E.<anonymous> (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1190:16)
at E.emit (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:397:12)
at WebSocket.<anonymous> (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:988:80)
at innerInvokeEventListeners (ext:deno_web/02_event.js:754:7)
at invokeEventListeners (ext:deno_web/02_event.js:801:5)
at dispatch (ext:deno_web/02_event.js:658:9)
at WebSocket.[[[eventLoop]]] (ext:deno_websocket/01_websocket.js:456:11)
Caused by error: relation "users" does not exist
at sn.parseErrorMessage (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1182:6)
at sn.handlePacket (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1143:13)
at sn.parse (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1127:36)
at E.<anonymous> (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:1190:16)
at E.emit (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:397:12)
at WebSocket.<anonymous> (file:///node_modules/.deno/@[email protected]/node_modules/@neondatabase/serverless/index.mjs:988:80)
at innerInvokeEventListeners (ext:deno_web/0
The text was updated successfully, but these errors were encountered:
Hmm, that's a surprising error to get only intermittently.
How are you making/reusing connections? On platforms such as Cloudflare Workers, it's important to connect, query and disconnect within your response function, since connections are not held open outside of one.
If you're not using interactive transactions and don't need node-postgres compatibility, you could also try switching to the driver's http transport (import { neon } from '@neondatabase/serverless) — check the README or docs.
Thanks for advice @jawj! I'm using Pool from @neondatabase/serverless because I need node-postgres compatibility. But maybe I'll try to rewrite my database driver for kysely beacuse my app don't use transactions at all...
Steps to reproduce
Sometimes after fresh deployment to Deno Deploy my API is stucked with error
relation "..." does not exist
I do nothing and after some time without any changes in code and configs it starts working again perfectly...
How it possible?.. I think the problem could be in the Deno Deploy and how they are sharing resources between lambdas... But I'm still investigating
Maybe somebody has same problem?
Expected result
It should works fine
Actual result
It works bad sometimes
Environment
Deno Deploy
@neondatabase/serverless
v0.9.3
from npmLogs, links
The text was updated successfully, but these errors were encountered: