-
Notifications
You must be signed in to change notification settings - Fork 303
Deno - error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace') #778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you found solution? |
Same problem with nextjs node or bun doesn't matter |
I found it worked with Node Only in Deno it is not working. |
It's working in production I guess but on dev it can work for a while but then on hot reload this error happens |
This is a matter of migrating |
I'm having this issue when reserving but not with regular connections. @porsager could really use your help here. const admin = pg(databaseUrl, { database: "postgres" })
return {
admin: await admin.reserve()
} Crashes:
Heads up that doing
Solved the issue for me. |
The problem occurs when I open my Mac after a couple of hours. This is a bug in error handling routine and obscures the real error. 100% should be fixed in this package.
|
We saw this issue as well in our production environments after starting to use kysely-postgres-js. We managed to track it down to the fact that The minimal code to reproduce this issue is to run the code below while your postgres instance is shutting down;
Lines 108 to 114 in f58cd4f
But expected to be a query here; Lines 384 to 397 in f58cd4f
When running the reproduction code above, we could see that |
Spec
Runtime: Deno
Database Provider: Neon
Reproduce:
I run into this error when I try to migrate.
Code
deno.json
migrator:
db instance:
The text was updated successfully, but these errors were encountered: