Hi Hubspot community,
For few of the extractions we run, we keep getting the below error.
Giving up on request after 5 tries with url https://api.hubapi.com/deals/v1/deal/paged and params {‘limit’: 100, ‘includeAssociations’: True, ‘properties’: [], ‘includeAllProperties’: True, ‘allPropertiesFetchMode’: ‘latest_version’, ‘offset’: 8649324411}
We have retry(backoff) logic to sleep the program for 10 seconds and we retry for 5 times to get rid of the error, even after 5 retires we face the same issue.
Any inputs/ help would be much appreciated
Hey, @stitch_data
Thanks for reaching out. Hey @himanshurauthan @Kevin-C, do you have any experience here? Thank you for taking a look! — Jaycee
Hello @Jaycee_Lewis, thank you for tagging me in.
So @stitch_data are you trying to fetch the deals using Accounts Dashboard | HubSpot endpoint?
If yes, then as I can see you are using ‘includeAllProperties’ and ‘allPropertiesFetchMode’, these two params are not provided by this endpoint. Also, if you are trying to fetch certain properties of the deal then you need to pass them as a string and not as an array. Like properties=x&properties=y and this can be used multiple times to fetch multiple properties of the deal.
Besides, if the issue still persists, provide me with some more insights about the issue such as the response you are receiving for this API.
Regards,
Agree @himanshurauthan. ‘includeAllProperties’ and ‘allPropertiesFetchMode’ params are not available in the API documentation.
To fetch certain properties of the deal, we previously used to pass each property in the API params itself as you suggested. But, API is returning 414 errors while passing multiple no of property together.
So, we raised the concern regarding the same issue to the hubspot support team(link). In that conversation, we got an answer stating that they will implement a short-term fix of requesting all properties via the `includeAllProperties` and `allPropertiesFetchMode` params and that’s why we implemented the same thing in our integration.
So, reverting back to these changes will again cause the same issue for us.
Let us know if you have any other thoughts.
I checked it from my end and everything was working fine. I suggest you kindly check if you exceed your API call limit (API usage guidelines and limits - HubSpot docs).
Can you please share the error response that you are getting?