celeroncoder / celeroncoder/notary-API
TypeORM cannot connect to Remote Heroku Postgress Database
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**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`.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu từ thư mục gốc của repository và chạy `npm run start:prod` để tái hiện lỗi kết nối được mô tả đối với cơ sở dữ liệu Heroku Postgres. So sánh hành vi kết nối hiện tại với các lỗi SSL đã được báo cáo; hoàn tất khi ứng dụng NestJS khởi tạo và kết nối với cơ sở dữ liệu mà không có lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- postgresql, typescript
- Lĩnh vực
- backend, databases
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100