APIs & Integrations

steveka
Participant

Looping Through companies API, I randomly get an error part way through.

SOLVE

Hi There,

I'm looping through the companies paged api with php and curl, and seem to randomly get an error sometimes. Maybe the first or 5th iteration, seems random. Any help would be appreciated...

The error is


{"status":"error","message":"internal error","correlationId":"c5ae9498-ab7b-4e38-9764-fbc5fda04dd2","requestId":"871ce6be5271bcc16bd3cfde5540159f"}

 

Request was this, works in postman. The x's are placeholder

 

https://api.hubapi.com/companies/v2/companies/paged?hapikey=xxxxxxx&properties=name&properties=acct_...

 

0 Upvotes
1 Accepted solution
hot_z
Solution
Contributor

Looping Through companies API, I randomly get an error part way through.

SOLVE

Hi there,

 

I think that there is a possibility that your issue is related to what happened in https://community.hubspot.com/t5/APIs-Integrations/Get-all-companies-throws-random-HTTP-500-errors/m.... Is this still happening for you now?

View solution in original post

3 Replies 3
hot_z
Solution
Contributor

Looping Through companies API, I randomly get an error part way through.

SOLVE

Hi there,

 

I think that there is a possibility that your issue is related to what happened in https://community.hubspot.com/t5/APIs-Integrations/Get-all-companies-throws-random-HTTP-500-errors/m.... Is this still happening for you now?

steveka
Participant

Looping Through companies API, I randomly get an error part way through.

SOLVE

Thanks hot_z,

 

Looks like it was a temporary condition, took a look at the hubspot status page when it was happening and didn't see anything about api problems.

 

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Looping Through companies API, I randomly get an error part way through.

SOLVE

Thanks for jumping in, @hot_z.

 

@steveka, the issue you're describing is almost certainly related to that issue, which should now be resolved.

 

Please let me know if you're still encountering the behavior.

 

Isaac Takushi

Associate Certification Manager
0 Upvotes