HubSpot limits, retries and timeouts
What it does
HubSpot limits how many requests an app may send. Askling stays at 80 percent of the documented limits for your portal. Checks and writes get most of that, and the screens you open get the rest. Search requests have their own, lower budget.
When HubSpot is slow or busy:
- Rate limit (429). HubSpot did not process the request. Askling waits for the time HubSpot names (up to 60 seconds) or a growing delay, then tries again, up to 5 times. A run then gives up with
rate_limited. A write waits longer instead. It goes again by itself after 30 seconds, then 1, 2, 4 and 8 minutes, each time with the kill switch and every safety check. Only then does it fail, and Retry the rest sends all such rows again in one click. - Timeouts and server errors on reads. Askling waits up to 30 seconds for an answer, and tries up to 3 more times with growing delays.
- Timeouts and server errors on writes. Askling does not blindly send the write again. It reads the record to see whether the write landed. If the read back works, the result is clear. If it fails, the result is unknown and a person uses Check again. See Stale and unknown.
- Access token rejected (401). Askling refreshes the token once and tries again. If it is still rejected the result is
connection_error.
Paging never uses offsets. Every page asks for records with an id greater than the last seen, so HubSpot's window of 10,000 search results is never reached.
How to use it
Nothing to do. If a run fails with a limit or timeout code, click Run now again after a few minutes. If writes still failed after the retries, click Retry the rest in the popup of that click. If a write result is unknown, click Check again.
What it does not do
- It does not retry a write on its own after an unclear result.
- It does not wait forever. A request times out after 30 seconds.
- It does not exceed the limits on purpose.
Why it works this way
A write that is sent twice can do harm. A read that is sent twice cannot. So reads retry freely and writes never do.
Common questions
Why did my run fail with rate_limited? HubSpot was busy, often with other apps in your portal. Click Run now again after a few minutes.
Why is a big Approve all faster now? Askling reads the property definitions of your portal once a minute, not once per change. Each change takes about three requests: read the record, write it, read it back.
Does a big portal take longer? Yes. Reads are 200 companies at a time and paced.
Will two runs at once hit the limits? Askling allows only one run per check at a time and shares one limiter per portal.
What if HubSpot is down? Runs fail with a server error code. Try again in a few minutes. A write with an unclear result shows as unknown: click Check again.
Can I raise the limits? That is HubSpot's setting for your account tier.
Where do I see the codes? In Recent runs and in the row of the Logbook.
When something goes wrong
| Symptom | Cause | What to do |
|---|---|---|
rate_limited | Too many requests | See rate_limited |
timeout | No answer in 30 seconds | See timeout |
network_error | The connection broke | See network_error |
server_error | HubSpot failed | See server_error |