Forum Discussion

TBFG's avatar
TBFG
Member
2 months ago

Gateway Timeout

{"Errors":[{"Name":"GatewayTimeout","Message":"Connection to the API has timed out","AdditionalDetails":"Maximum call time is 29 seconds","ErrorCode":null,"Severity":"Error","LearnMore":"http://developer.myob.com/api/accountright/api-overview/error-messages"}],"Information":"Warning, error messages have not been finalised in this release and may change"}

 

Any ideas what would cause this?

4 Replies

  • Hi TBFG,

     

    I found a community forum post that looks like it could help with the error you’re seeing. Hopefully, other members can also share their insights here. 

     

    Cheers,

    Princess

  • Mike_James's avatar
    Mike_James
    Ultimate Cover User
    2 months ago

    Hi TBFG​, gateway timeout is one of a number of errors that stop your call to the API from being processed. We've added retry code to all our calls, which allow at least 6 attempts, although we never see more than 2 attempts required. You may need to consider building the same thing into your code/app.

  • TBFG's avatar
    TBFG
    Member
    2 months ago

    Thanks Mike

    Yes we do that now, but for the user the perception is that it is slow. Which of course it is.

    Just thought there might be something we were missing

  • Mike_James's avatar
    Mike_James
    Ultimate Cover User
    2 months ago

    Hi TBFG​ , we have an app posting individual transactions to multiple AccountRight files (which you would have thought might be slowed down) and another app extracting transactions of all kinds in bulk. Neither seem unduly slow.