Is Anyone Else Experiencing HubSpot's "Secondly Limit" Message Despite Not Exceeding Rate Limit, Possibly Due to Requests from the Pipedream IP Range?

Or maybe to set a max, right?

The default code only works with up to 25 contacts and then fails. I had to customise it. I opened a PR but honestly have not had the time to make the requested edits, Node isn’t my forte.

Ah ok. Sounds like you just need to update the versions on the action itself and the app package.json. But I can help with that if you’d like

Actually, it’s more complicated that than I thought. It seems getPaginatedItems is the root cause, as it calls hubspot.searchCRM iteratively, so the sleep needs to be there. It’s part of the common functions, so it’s impact would be much wider ranging.

Got it. I think think we could sneak an option delay param to that method

I know this bug is niche, but I could probably see that being a good idea for customers at scale.

Assuming of course I’m right :smile:

Ok, I can pretty much confirm this issue was caused by the pagination function. I wrote a new one as a work around, and added a ‘hubSleep’ function, and it’s working again. Thanks all.

Screenshot 2023-11-17 at 3.32.38 PM.png

Screenshot 2023-11-17 at 3.33.32 PM.png

Nice! Glad you were able to find a workaround

I assume hubSleep’s default is 0? So that way it’s “speedy” by default.

At the moment just pass in a ms value. It’s a hacky fix for now.

Hey whatever works, especially if it’s your own private action