Error: "status":"error","message":"internal error"

XenAdmin
Member

Why do I often get error like following error when I query records on Hubspot?

 

{"status":"error","message":"internal error","correlationId":"41027319-fb41-4094-a067-1acbd15a90ef"}

0 Upvotes
3 Replies 3
quentin_lamamy
Key Advisor | Diamond Partner

Hi @XenAdmin ,
Can you post your code, and your api log ? i will check what is going wrong.


0 Upvotes
XenAdmin
Member

This is a random issue when I use api with the correct hapikey and params to get all contacts

https://api.hubapi.com/contacts/v1/lists/all/contacts/all

-

response:

502: Bad gateway

href: https://www.cloudflare.com/5xx-error-landing

0 Upvotes
quentin_lamamy
Key Advisor | Diamond Partner

Hi @XenAdmin ,

 

First of all i suggest you to use the last version of the api : here is the doc.

Second point,the 503 error is a server error, you just have to to catch the error and  launch the request again. Which language are you using ? php ?