Jump to content

Timeout error While creating Estimate


 Share

Recommended Posts

I am trying to create an Estimate, but my API is returning me this error:

{"$severity":"error","$dataCode":"TimeoutError","$message":"The backend has not responded within 28s while proxying this request. Please try again later.","$source":"Proxy"}

 

But after sometime, i see that estimate created in Sage but my API always respond to this. For less line items, it is working fine, but for more line items, it returns this error.

Link to comment
Share on other sites

Hi Shivam,

Thank you for your post.

The API gateway times out after 28 seconds of waiting for a response from the backend. If you're creating artefacts, Estimate's in this instance with a large number of line items it may be that at times the backend is unable to respond in 28 sec's. If the payload is all good the artefact will be created. 

You'll need to think about implementing idempotency in your requests if large numbers of item lines is likely to be the norm. https://developer.sage.com/accounting/guides/concepts/idempotency/.

 
I've also referenced the below threads in the developer community from people having similar issues when posting sales_invoices.
 
 
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...