You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is originally a message to helpdesk - posting here to share the request:
I am working a lot with the gbif API and when I encountered a failed search query due to a partial outage of gbif I
wondered whether it is possible to request the systems health status via pygbif.
I did not find an easy way to do this. I think it would be nice to have an API call for the system health and system load to
automatically check when using the system is save and plan tasks accordingly.
You are probably rather busy currently due to the migration. So, I do not expect an implementation soon.
This is just a suggestion for future improvements.
The text was updated successfully, but these errors were encountered:
The HTTP response codes to API requests could be used by pygbif and others to cope with an outage, whether that's a single failed query or a temporary problem with GBIF's servers.
Response code 429 means the client should reduce the rate at which it is sending requests. This is specific to the client, so it wouldn't be shown in a health API anyway.
Response codes starting with 5, usually 503, 500 or 504, mean a problem with the server. Trying again after a short delay (e.g. 5 seconds, increasing by 5 seconds for every subsequent error until the wait is 60 seconds) is appropriate.
This is originally a message to helpdesk - posting here to share the request:
The text was updated successfully, but these errors were encountered: