Client has encountered a connection error and is not queryable
See original GitHub issueWe are having error: Client has encountered a connection error and is not queryable
There is a suggestion to set idleTimeoutMillis: 0
https://github.com/brianc/node-postgres/issues/2512
How to do that using serverless-pg?
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
"Client has encountered a connection error and is not ... - GitHub
1, we are getting "Client has encountered a connection error and is not queryable" error in production after a week of working just...
Read more >Node.js for some reason cannot connect to postgresql
The code crashes at the query object creation. var conString = "postgres://mydbusr:thepassword@localhost/mydb"; var client = new pg ...
Read more >postgres-pool - npm Package Health Analysis - Snyk
Node postgres connection pool implementation for node-pg For more information ... throws "Client has encountered a connection error and is not queryable" ...
Read more >"Client has encountered a connection error and is not ...
1, we are getting "Client has encountered a connection error and is not queryable" error in production after a week of working just...
Read more >Vincit/objection.js - Gitter
(node:25) UnhandledPromiseRejectionWarning: Error: Client has encountered a connection error and is not queryable at process.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

most probably this is the case. I will try to change the code accordingly
It
.connectand.cleanshould be used one time per lambda execution, at least that’s how I design it to work. Maybe is not really clear in the docs.