Common API error responses - flowerchecker/plant-id-examples GitHub Wiki
Examples of errors you may encounter while calling the API.
HTTP Response Code | Reason | Notes |
---|---|---|
400 | Bad Request | Missing image data |
400 | Bad Request | Invalid base64 image data |
400 | Bad Request | Images have to be list of base64 strings |
400 | Bad Request | Missing json data |
400 | Bad Request | Invalid json data |
400 | Bad Request | Invalid JSON value error: description |
400 | Bad Request | Invalid modifier modifier |
400 | Bad Request | Data have to be dict |
400 | Bad Request | Custom id is too large |
400 | Bad Request | Datetime have to be int |
400 | Bad Request | Datetime is too large |
401 | Unauthorized | No api key provided. |
401 | Unauthorized | The specified api key not found. |
401 | Unauthorized | The specified api key is not active. |
401 | Unauthorized | Invalid authorization header. |
404 | Not Found | API endpoint not found. Please check documentation at https://github.com/flowerchecker/Plant-id-API/wiki. |
405 | Method Not Allowed | - |
429 | Too Many Requests | The specified api key does not have sufficient number of available credits. |
429 | Too Many Requests | The specified api key reached its day credit limit (n). |
429 | Too Many Requests | The specified api key reached its week credit limit (n). |
429 | Too Many Requests | The specified api key reached its month credit limit (n). |
Debuging example in Python:
print(response.status_code) # 400
print(response.reason) # Bad Request
print(response.text) # Missing image data