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
Cannot connect to Postgres with Node v14 #7022
Comments
@alxndrsn Thanks for posting! We'll take a look as soon as possible. In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
For anyone following this and wanting an immediate fix, I had to change the If you're also using |
Thank you @alxndrsn for the workaround, we will be working on updating sails-postgresql to work with Node 14 this month |
Is this bounty still open? It's offering $15 to solve this issue which appears to be already solved. |
Node version:
14.x
: tested on14.0.0
,14.5.0
,14.7.0
Sails version (sails):
1.2.4
ORM hook version (sails-hook-orm):
2.1.1
DB adapter & version (e.g. sails-mysql@5.55.5):
sails-postgresql@1.0.2
Observed
Database connection times out on app startup when using node version 14. Node 12 and 13 seem to work fine:
Working with node 12:
Broken with node 14:
Expected
Upgrading to latest node should not break the db connection.
Steps to recreate
(requires local postgresql and correct permissions to connect)
Possibly related
There are a number of other projects reporting issues with node 14 and
pg
:It sounds like updating the
pg
dependency might fix the issue.The text was updated successfully, but these errors were encountered: