mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
docs(api): add troubleshooting section (#57896)
This commit is contained in:
committed by
GitHub
parent
256266bc98
commit
329eba03a5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user