Troubleshooting
Status codes
| Code | Meaning | What to do |
|---|---|---|
200 / 201 / 204 | Success | |
401 | Key missing or invalid: unknown, revoked or expired key, inactive or deleted user, or a user without access to the API | Check the Authorization: Bearer ... header and the status of the key on API-Schlüssel. Ask an administrator whether the API is allowed for you. |
403 | Request not made over HTTPS, or the administrator hid the matching page of the website for you | Use https://. Behind a proxy, see HTTPS only. For hidden pages, see Endpoints. |
404 | Unknown id, also for leagues, seasons, games and bonus questions of leagues which are not available | Start again from GET /leagues. Only the "available leagues" of xTIPP can be used. |
409 | The deadline of the game or the bonus question is reached | Too late, the tip or answer can no longer be changed. |
422 | Invalid input | See errors in the answer. |
423 | The data are being synchronized at the moment | Try again shortly. |
429 | Too many requests: by default 60 per minute and key (setting rate_limit), and 10 failed attempts per minute and address | Wait for the number of seconds in the Retry-After header. |
503 | Maintenance mode (only admins can continue), or the database of xTIPP is not available | Try again later. When the database is down, xTIPP answers before the API with a plain HTML page and Retry-After: 60, not with JSON. |
Every call answers 403
Almost always the HTTPS check behind a reverse proxy: PHP sees HTTP, because the proxy terminates TLS. Set
TRUSTED_PROXIES or pass HTTPS=on to PHP, see Behind a reverse proxy.
The key page or Swagger UI is missing
API-Schlüssel in the profile menu and /api/docs (404) are only available to users with
access to the API. With Nur ausgewählte Mitglieder, administrators need the
role API-Benutzer, too.
The key worked before and now answers 401
- The key expired (status Abgelaufen), was revoked or was regenerated.
- The access to the API was taken away by the setting
allowed_usersor by removing the roleAPI-Benutzer. The key is kept and works again as soon as access is allowed. - The account was deactivated or deleted.