This topic was automatically generated from Slack. You can find the original thread here.
Anyone using the HubSpot Sources? We’re seeing a continuous “You have reached your secondly limit.” message but none of our workflows would come near the rate limit. We’re trying to determine if it’s us, or potentially being triggered by HubSpot seeing a requests from the Pipedream IP range.
Seems to have started about 2 days ago, but we’ve made no changes. Likewise I spent the morning adding some delays to other HubSpot workflows to space out the API calls, and we’re still getting it.
It could be something else with my client I’m not aware of, but I wanted to rule out Pipedream first,
Yea that’s a 429 from HubSpot directly, not from Pipedream’s system.
You might be able to leverage the Event History section to at least narrow down workflow executions. But either you’ll need to find a way to increase HubSpot’s rate limit for your account with them, or decrease your usage on Pipedream or any other app using the same HubSpot token that’s using it.
The Pipedream IP address range is the entirety of the us-east-1 region in AWS.
It’s a pretty large block.
The only other possibility is that they’re throttling based on the User Agent header. But that’s highly unusual for an API performing actions on behalf of an authenticated user.
That kind of IP address/user agent throttling is usually for public routes or webscraping because you can’t throttle based on an account.
From my reading of HubsSpot’s docs, it doesn’t look like they’re rate limiting the Pipedream OAuth app either, it seems account-specific HubSpot APIs | Usage guidelines
Ok, this is somewhat related to Pipedream I think.
Turns out my client did a bulk update (~1,700) contacts. The contacts/search has a lower rate limit. batchGetContacts() makes a HTTP request, if there are 1,700 contacts and it can process a max of 50 per iteration, that’s 34 requests, which depending on the speed could hit the 15 calls/second limit, which would trigger this error.
If you hit the timeout limit for the workflow, it might help to try $.flow.delay instead, or split the HubSpot call into it’s own workflow and adjust the concurrency settings to make sure it’s under the rate limit