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.
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.