Email Event API failsSOLVE
Aug 18, 2020 9:57 AM
I want to get all email events for a list of certain campaigns using the Email Event API. I am using KNIME Analytics Platform to perform the requests within a loop which requests for each campaign id in the given list get requests and uses the offset parameter to page through all events.
At some point the get request fails. When I reset the loop and execute it again it fails at a different point, so it doesn't seem to be a specific event/campaign id that causes the problem.
I already thought about rate limits and therefore increased the waiting time between requests up to 2 seconds. Didn't work.
Any idea what might be causing this?
Thanks in advance.
Solved! Go to Solution.
Aug 20, 2020 4:35 AM
thanks for your reply.
I think I found the problem meanwhile. I get always a 502 status from my failed requests and I found some posts about 5xx error messages here in the community, e.g. https://community.hubspot.com/t5/APIs-Integrations/502-Bad-Gateway-errors/td-p/275949 .
So I built another loop in my workflow to re-try the failed request and until now everything works fine even though this is not best practice...