apollographql / apollographql/fullstack-tutorial

Login exception INTERNAL_SERVER_ERROR

Đang mở
#139 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.2k
Fork
808
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When performing the first login I receive this error:
```
"SQLITE_ERROR: no such table: users",
```
The sqlite db is there and I can read from it with an sql tool. I've also verified that the table `users` is available.

The location of this file is in `server/store.sqlite` but somehow when I run my server it gets copied to the root folder (whic part of the logic does this, maybe sequelize?)

I can read from `src/utils` that `storage: './store.sqlite',` so I guess the db should be located inside the `server/src` directory, but even copying it manually inside `src` doesn't fix the problem.

Maybe I've missed a step somehow?

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 bằng cách truy vết cấu hình lưu trữ SQLite trong src/utils và cách server/store.sqlite được phân giải hoặc sao chép khi server khởi động. Xác minh server đang chạy mở tệp cơ sở dữ liệu nào và so sánh tệp đó với tệp chứa bảng users; hoàn thành khi lần đăng nhập đầu tiên không còn báo SQLITE_ERROR: no such table: users.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
sqlite, typescript
Lĩnh vực
authentication, backend, database
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
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.