Hi Hubspot,
In our recent events while creating contacts/deals, hubspot is not returning rate limit info in its HTTP response. Because of that we ended up with duplicates deals in hubspot.
Not sure, why isn’t there no proper HTTP response from hubspot after succesfull create/update. Need help on this ASAP.
@dennisedson The headers didn’t have any rate limit info, that was the error that I mentioned.
We log the rate limit from HTTP response.headers. Our logging failed for some events because the header info like “”“x-hubspot-ratelimit-daily”“” was missing. PFB the piece of code that logs headers info
@tominal@dennisedson The post request is success, event is created in hubspot, but the response headers doesnt have rate limit info.
This error didn’t happend for all events, some where success (i.e headers have rate limit info), and some where failures (i.e headers doesnt have rate limit info)
As Dennis said, they’re all in the header information
Speaking of rate limits, the client libraries also have their own helpful ways of retries to help handle rate limiting.
PHP:
I want to dynamically get: X-HubSpot-RateLimit-Secondly-Remaining, so that when it there is 1 limit remaning, I will put a delay of 10 seconds. How to do it in PHP?