Skip to main content

Troubleshooting

Status codes​

CodeMeaningWhat to do
200 / 201 / 204Success
401Key missing or invalid: unknown, revoked or expired key, inactive or deleted user, or a user without access to the APICheck the Authorization: Bearer ... header and the status of the key on API-Schlüssel. Ask an administrator whether the API is allowed for you.
403Request not made over HTTPS, or the administrator hid the matching page of the website for youUse https://. Behind a proxy, see HTTPS only. For hidden pages, see Endpoints.
404Unknown id, also for leagues, seasons, games and bonus questions of leagues which are not availableStart again from GET /leagues. Only the "available leagues" of xTIPP can be used.
409The deadline of the game or the bonus question is reachedToo late, the tip or answer can no longer be changed.
422Invalid inputSee errors in the answer.
423The data are being synchronized at the momentTry again shortly.
429Too many requests: by default 60 per minute and key (setting rate_limit), and 10 failed attempts per minute and addressWait for the number of seconds in the Retry-After header.
503Maintenance mode (only admins can continue), or the database of xTIPP is not availableTry 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_users or by removing the role API-Benutzer. The key is kept and works again as soon as access is allowed.
  • The account was deactivated or deleted.