Sporadic but frequent "Unexpected error"

I have been building an integration with our ERP and keep getting random {“message”: “Unexpected error. Please contact a system administrator.”} when I run simple queries such as user_quota queries:

{
user_quota {
credits_remaining
max_available
increment_rate
}
}

It will error out and then I wait a few seconds and try again and it works. It has been very frustrating and gives me a bad feeling about the stability of this API. Is this a common occurrence that just needs to be handled?

1 Like

After some more debugging the response I am getting the most from the POST is:

{StatusCode: 500, ReasonPhrase: ‘INTERNAL SERVER ERROR’, Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Connection: keep-alive
Date: Thu, 13 Feb 2020 22:06:38 GMT
Server: gunicorn/19.9.0
Content-Length: 71
Content-Type: text/html; charset=utf-8
}}

Again, it happens sporadically about once every 2-10 calls. Any thoughts on what do I might try to get a more reliable connection would be helpful.