504 - GATEWAY_TIMEOUT

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
OlegVlasov
Contributing User
6 Posts
Contributing User
Contributing User

6Posts

0Kudos

0Solutions

Solved: Go to Solution

504 - GATEWAY_TIMEOUT

Hi guys.

 

I work at the project that uses Myob API to fetch data for the reports building and data analys .

We noticed that sometimes we get the response:
{
"StatusCode": 504,
"ReasonPhrase": "GATEWAY_TIMEOUT",
"Version": {
"Major": 1,
"Minor": 1,
"Build": -1,
"Revision": -1,
"MajorRevision": -1,
"MinorRevision": -1
},
"Content": "",
"HEADERS": {
"Authorization": "...",
"x-myobapi-key": "...",
"x-myobapi-version": "v2"
}
}

That happened on the requests from these endpoints:
- /GeneralLedger/JournalTransaction
- /GeneralLedger/Account
- /Sale/Invoice
- /GeneralLedger/JournalTransaction

All of them were performed by filtering by dates and pagination (page size -100), each occurred on the same page which differs from first one.

Could you take a look please? Any advice how to resolve this on the side of our application would be appreciated too.

Please let me know if any other details are required.

2 REPLIES 2
Mike_James
Ultimate Partner
5,839 Posts
Ultimate Partner
New Zealand
Ultimate Partner

5,839Posts

1,080Kudos

755Solutions

Accepted Solution Solved

Re: 504 - GATEWAY_TIMEOUT

Hi @OlegVlasov , the API team may have other comments, but that message, and "Internal Server Error" occurs at random, and our solution is to retry all our calls up to 5 times. 

 

There was a large volume of these errors late last year, but the API infrastructure was improved and they have reduced in frequency since then. 


Regards, Mike (mike@datawise.co.nz)
DataWise Limited (www.datawise.co.nz), developers of:
DataWise ProActive - Custom Reporting from MYOB programs
(MYOB Business, including AccountRight Live, AccountRight v19.x and exo Payroll)

Bulk download of attachments (more details...)

painIsrelative
3 Posts
User

3Posts

0Kudos

0Solutions

Re: 504 - GATEWAY_TIMEOUT

we are getting random of these regularly. Particulary when pushing up invoices.  (even small invoices)

 

The frustrating thing is that sometime steh invoice is created in MYOB and sometimes it has not. We assume that because it timed out, it failed and end up duplicating teh invoice.

 

how doe sit take 30 seconds to push up a 5 line invoice.

 

I see there is an accpeted solution here, but I dont see one.

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post