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

TypeORM cannot connect to Remote Heroku Postgress Database #36

Open
celeroncoder opened this issue Oct 16, 2021 · 0 comments
Open

TypeORM cannot connect to Remote Heroku Postgress Database #36

celeroncoder opened this issue Oct 16, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@celeroncoder
Copy link
Owner

Describe the bug
While connecting to the Heroku Postgres server the connection is refused with an error that SSL is not configured and if SSL: true in config the error is self-signed certificate`.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the root of the project
  2. Run npm run start:prod
  3. Wait for the nest application to be initialized.
  4. See the error.

Expected behavior
The Server must connect to the Postgres DB with no errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Most probably the reason is that the Postgress database hosted on Heroku is configured with ssl-only: true.

@celeroncoder celeroncoder added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Oct 16, 2021
@celeroncoder celeroncoder added this to the secure API milestone Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant