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