celeroncoder / celeroncoder/notary-API
TypeORM cannot connect to Remote Heroku Postgress Database
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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`.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start at the repository root and run `npm run start:prod` to reproduce the connection failure described for the Heroku Postgres database. Compare the current connection behavior with the reported SSL errors; done means the NestJS application initializes and connects to the database without errors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- postgresql, typescript
- Ambito
- backend, databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100