We are every now and then collecting all companies from hubspot. Yesterday night at 11pm, we started to get HTTP status 500 without any description.
We are using the paging and do this in a loop until has-more is false. We've a Thread.sleep(350) in the loop to not hit any rate limit.
I've debugged the situation and it is breaking each time at a different offset. If I copy the offset and run the query outside of our app, it is working ok.
Sincere apologies for the trouble. This was due to an issue on our end which seems to have begun Thursday evening, but it now seems fully resolved. Our team is investigating the cause further and I'll update here with as much information as I can.
Please let me know if you continue to experience these 500 internal error issues with the Get all companies endpoint.
Increasing the sleep time does not help. It is an error on their side. If you hit a rate limit, the error is different. I fixed this by a simple retry strategy, but still they need to fix the root cause at their side.
Furthermore, the api itself is failing every now and then and throw random bulls**t errors. Sometimes I get a complete error page as a response, therefor a retry seems to be a good idea as long as the api is so unstable. I wish it would be a bit more like Stripe. Those guys offering api clients doing retries and paging within the client itself 🙂
Sincere apologies for the trouble. This was due to an issue on our end which seems to have begun Thursday evening, but it now seems fully resolved. Our team is investigating the cause further and I'll update here with as much information as I can.
Please let me know if you continue to experience these 500 internal error issues with the Get all companies endpoint.