-
Notifications
You must be signed in to change notification settings - Fork 376
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
Error: getaddrinfo ENOTFOUND (postgres hostname with port) #355
Comments
👍 Please fix it :) |
Please test this commit. npm install dresende/node-orm2 |
Hi Diogo, thanks for the fix, it seems to work fine now! The npm package still needs to be updated though :) Please let me know when it's all done, so I can use the latest version. Thanks |
Done. |
found same problem still using 2.1.3 here is my code
Throwing Same error like above, But it is resolved when i pass my db credentials as object not as string. |
This could be by design. I solved it by URL encoding my connection string. |
Between orm 2.1.0 and 2.1.1, a bug crept in when orm.connect is called with a postgres URL which specifies the port as part of the hostname:
The error seems to have been introduced in this commit: f566893
The text was updated successfully, but these errors were encountered: