docs: Add Cloudflare troubleshooting section to README
All checks were successful
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 19s
build-and-push / docker (push) Successful in 11s

- Document 'Incorrect response' error and solutions
- Add FlareSolverr usage instructions
- Add common issues table
- Improve Firefox user.js for better Cloudflare compatibility
This commit is contained in:
root 2026-03-08 14:06:49 +00:00
parent 48c861b3de
commit 23ca522094
2 changed files with 57 additions and 4 deletions

View file

@ -103,3 +103,49 @@ Persistence & Outputs
Tip: For captchas or first-time login, run with `SHOW=1` and log in once; cookies stay in the profile. Notifications via `NOTIFY` help surface errors (e.g., captcha, login).
## Troubleshooting
### Cloudflare / "Incorrect response" Error (Epic Games)
If you see **"Incorrect response. Please refresh the page."** or repeated "word word" text on the login page, Cloudflare is blocking the automated browser.
**Solution 1: Use Docker Compose (recommended)**
The included `docker-compose.yml` has FlareSolverr pre-configured:
```bash
docker compose up
```
**Solution 2: Manual login with persistent cookies**
```bash
docker run --rm -it \
-p 6080:6080 \
-v fgc-data:/fgc/data \
-v fgc-browser:/home/fgc/.cache/browser \
-e SHOW=1 \
-e EG_MODE=new \
git.sky-net.it/nocci/free-games-claimer:dev \
node epic-games
```
Then open `http://localhost:6080`, log in manually. Cookies are saved for subsequent runs.
**Solution 3: Disable strict Firefox privacy settings**
The entrypoint now creates a `user.js` with Cloudflare-friendly settings. If you still have issues, delete the browser profile to regenerate it:
```bash
docker volume rm fgc-browser
```
### Common Issues
| Error | Cause | Fix |
|-------|-------|-----|
| "Incorrect response" | Cloudflare bot detection | Use FlareSolverr or manual login |
| Captcha loop | IP flagged | Wait, change IP, or use FlareSolverr |
| "Not signed in" timeout | Login expired | Run with `SHOW=1` and re-login |
| Repeated "word" text | Cloudflare fingerprinting | See Cloudflare solutions above |