docs(api): add troubleshooting section (#57896)

This commit is contained in:
Oliver Eyton-Williams
2025-01-07 08:35:36 +01:00
committed by GitHub
parent 256266bc98
commit 329eba03a5
+10
View File
@@ -25,6 +25,16 @@ cd ../.. # back to the root of the repo
pnpm seed
```
### Troubleshooting
If you have any issues connecting to the database (e.g. MongoServerError: not primary), try removing the volume and recreating the containers.
```bash
cd tools
docker compose down -v
docker compose up -d
```
## Login in development/testing
During development and testing, the api exposes the endpoint GET auth/dev-callback. Calling this will log you in as the user with the email `foo@bar.com` by setting the session cookie for that user.