Skip to content
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

"ssl" config value should be boolean #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

banderson
Copy link

This is my first time using this library, so disregard if I'm totally off-base here, but I kept running into issues locally on the latest version ([email protected], [email protected], [email protected]), with an error:

"The server does not support SSL connections"

despite having "ssl": "false" in this config file.

From what I can gather, this should be a boolean value instead of a string, as the underlying pg lib depends on that. I found this recent PR which led me to that conclusion:

Changes included:

  • Use boolean for "ssl" config values in documentation

Before: using "ssl": "false" in config caused "The server does not support SSL connections" fatal error
After: everything works as expected with "ssl": false config value

This is my first time using this library, so disregard if I'm totally off-base here, but I kept running into issues locally on the latest version of this library, with a "The server does not support SSL connections" error message, despite having `"ssl": "false"` in this config file.

From what I can gather, this should be a boolean value instead of a string, as the underlying `pg` lib depends on that. I found this recent PR which led me to thta conclusion:
 - https://github.com/brianc/node-postgres/pull/2394/files#diff-cc6abc00177b0fba133f7ea7b2fbe025fc21e789f243cfd85f9be7e0325f0bc2R83-R89
 - https://github.com/brianc/node-postgres/pull/2394/files#diff-cc6abc00177b0fba133f7ea7b2fbe025fc21e789f243cfd85f9be7e0325f0bc2R61-R63

#### Changes included:
 - Use boolean for "ssl" config values in documentation

**Before:** using `"ssl": "false"` in config caused "The server does not support SSL connections" fatal error
**After:** everything works as expected with `"ssl": false` config value
@banderson
Copy link
Author

Derp, I see that @minhnhut was after the same thing in #46. Happy to close this one if that can get merged, but if that one is abandoned, I can do what's needed to get this through. Let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant