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

Cannot connect AWS Redshift #547

Closed
Jiang-Li opened this issue Apr 26, 2020 · 1 comment
Closed

Cannot connect AWS Redshift #547

Jiang-Li opened this issue Apr 26, 2020 · 1 comment
Labels

Comments

@Jiang-Li
Copy link

Describe the bug
On the same machine, I can connect the Redshift using PyCharm, but VS Code gave the following error:
Error opening connection no pg_hba.conf entry for host "::ffff:10.10.1.125", user "jiangli", database "root", SSL off

Desktop (please complete the following information):

  • SQLTools Version [0.21.7]
  • VSCode Version: [1.43.2]
  • Driver Used/Version: [AWS Redshift]
  • OS: [Mac 10.15.4]
@mtxr
Copy link
Owner

mtxr commented May 13, 2020

Please, take a look here: https://vscode-sqltools.mteixeira.dev/driver/postgresql#11-specific-options

And also the driver docs:
https://node-postgres.com/features/ssl

this is a know issue. You might need to setup the connection with the correct SSL options for you.

try to use pgOptions: { ssl: true } at first. Usually this fixes for most of users.

@mtxr mtxr closed this as completed May 13, 2020
@holgerzer holgerzer mentioned this issue Jun 18, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants