Troubleshooting the API¶
If you encounter an error while using the API, here are some ideas to help solving the issue:
Error |
Possible solution |
Status code 301 |
This is a redirect from http to https, that means you need to switch from http to https (the correct url is also returned in the response). |
Status code 400 |
This means that something in the url does not comply with the description of our API, e.g.
https://{your manager url/ip address here}/public/api/v13/stations
instead of
https://{your manager url/ip address here}/public/api/v1.0/stations
or a wrong parameter type (string instead of int).
Please check closely if your call completely follows the description of the API. |
Failed to connect, no route to host |
The Manager URL or IP address is incorrect or not accessible on port 443. |
QR Code regeneration failed |
This could be due to the use of a wrong HTTP method (GET instead of POST). Please check the examples above and make sure your call is using the correct method. |
QR Code regeneration failed |
Please make sure that the token you’re using has the necessary scope (Regenerate QR Codes). If you’re missing the scope, your response will return the http status 403. |
Status code 404 |
In case you are using Manager 1.3.0, please make sure you are calling a method from the API v1.0, as it is the only version supported by your Manager. |