apollographql / apollographql/fullstack-tutorial
Login exception INTERNAL_SERVER_ERROR
- 主要言語
- TypeScript
- スター
- 1.2k
- フォーク
- 808
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、src/utils の SQLite ストレージ設定を追跡し、サーバー起動時に server/store.sqlite がどのように解決またはコピーされるかを確認します。実行中のサーバーが開くデータベースファイルを確認し、users テーブルを含むファイルと比較します。最初のログインで SQLITE_ERROR: no such table: users が報告されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- sqlite, typescript
- 領域
- authentication, backend, database
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100