REST API - 604 request timed out increased?

David_Desrosie2
Level 4

REST API - 604 request timed out increased?

I've seen quite a couple 604 (request timed out) errors since early September. They're coming from REST API calls. It seems to affect just a couple instances among a large volume, but it's all started early September and it's been repeated. It's also inconsistent.

We're working our way through this with the help of Support team across various tickets, but I was curious to see if other users are observing the same?

4 REPLIES 4
Gerard_Donnell4
Level 10

Re: REST API - 604 request timed out increased?

Is it always the same instances that are affected? Have support checked what customers you are sharing your box with? Maybe another customer is running campaigns that are hogging the box.

Have you read this: http://developers.marketo.com/blog/marketo-rest-api-exception-and-error-handling-part-2/

David_Desrosie2
Level 4

Re: REST API - 604 request timed out increased?

Thanks Gerard.
Yes it's the same couple instances repeatedly affected. I'm also familiar with Error Handling. But my hands are tied:
1- The job is executed despite 604 error from Marketo; so exponential backoff would cause a duplicate job.
2- I can't further split as this is related to a campaign schedule - not batch import/update. 


I'll continue to work with support to check on performance and see if we can add more resources...

Anonymous
Not applicable

Re: REST API - 604 request timed out increased?

I also have found myself in this situation, starting 2018-10-05. I am doing batch updates, but there is not much correlation between timeout and batch size. They time out occasionally when attempting to update < 30 records, but succeed regularly with 100+. The content of the failing updates does not seem significantly different. The operation should be idempotent, so I am considering setting a client-side timeout and retrying rather than waiting the full 90 seconds that the server seems to give. I am interested to hear if you have any insight based on your experience with support, or if anyone else has recommendations.

I know async is an option for this, but I would really like to avoid the complexity of polling for task completion if at all possible. I'm hoping the wide latency variation is an issue on Marketo's end.

Jep_Castelein2
Level 10

Re: REST API - 604 request timed out increased?

Can't say much about this without call details, but I trust support can help with that. What I can say is that I've seen - with the Merge API - that a merge sometimes takes more than 180 seconds and then it gives a 604, however, the merge continues in the background and completes successfully. So if you would retry, it would say 'Lead not found' because the merge already took place. If you retry too soon (while the merge is ongoing, after timeout) it will give a 611 system error. However, there are very few API calls - other than Merge - that should take more than 180 seconds to complete, so this may not apply to your situation at all.