Forum Discussion

ketangohil's avatar
5 years ago

Timeout while doing CustomerPaymentService.Insert

Hi,

 

I am posting payments to MYOB using CustomerPaymentService.Insert method. The method is constantly throwing timeouts.

 

There are around 235 entries in the specific API call I am referring here and It can go up to or above 500 entries and I am expecting it to work.

 

I have gone through this thread where you seem to have provided the solution to timeout but it's not accessible due to personal messages.

https://community.myob.com/t5/AccountRight-Sales-and-purchases/timing-out-issue/td-p/337804

 

Please share the details and I can make my piece of code working.

 

Thanks

Mahesh

 

 

2 Replies

Replies have been turned off for this discussion
  • Mike_James's avatar
    Mike_James
    Ultimate Cover User
    5 years ago

    Hi ketangohil , our experience with frequent posting to AccountRight files has been that there will always be a risk of timeouts, and you will need to build in a retry loop if the response (roughheader) includes "Internal Server Error". We noted up to 4 retries are needed at most, but usually only 1. 

     

    I don't think the timeout solution referrred to is relevant to the API, which has a timeout parameter in the HTTPRequest (max 120000 = 120 seconds).

     

  • Tana's avatar
    Tana
    MYOB Staff
    5 years ago

    Hi there.

    Thank you for reaching out via the forum.

    Confirming that the timeout period is set to 120 to match the API is definitely only a first step in troubleshooting the issue.
    Consistent timeout issues could point to a number of variables and another good place to start is file size.

    To dive further we would require some information regarding your API key and a full HTTP trace including URI & JSON/BODY of the failing calls.

    For that information we'd suggest creating a support ticket here and we can look into that for you.

    https://developer.myob.com/contact/

    Kind regards



Looking for something else?

Search the Community Forum for answers or find your topic and get the conversation started!

Community home

Level up your skills using MYOB software.

 

Find help guides and technical solutions for all MYOB products here

Explore video tutorials for our software at the MYOB Academy here

 

Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.