APIs & Integrations

Anil_R
Participant

Error on subsequent API calls from same API

Im creating activities for bunch of contacts with "Engagements API" with laravel. https://legacydocs.hubspot.com/docs/methods/engagements/create_engagement

 

Those are called one after the other within a loop . Only first API call becomes success subsequent API calls end up with returning this html . No any error message.

 

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare</center>
</body>
</html>

 

If I run the process again first one becomes success and same happnes to the remaining ones . Is there any control with calling multiple API calls?

0 Upvotes
3 Replies 3
Anil_R
Participant

Error on subsequent API calls from same API

Hi @dennisedson, really appreciate for coming up with help 🙏 . I got it sorted .

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Error on subsequent API calls from same API

Awesome.  Could you add your answer here for any other person who may experience a similar problem?

Thanks!

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Error on subsequent API calls from same API

Hi @Anil_R ,

Could you post your code here so we can see the loop (hide API key if needed)?

hey @jordanjtidwell , long time no see 🙂 I know you posted about a laravel API rate limit a few years back.  Would you be able to assist here?

 

Thanks!