Timeout while doing CustomerPaymentService.Insert

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.
ketangohil
1 Post
User

1Posts

0Kudos

0Solutions

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 2
Mike_James
Ultimate Partner
5,839 Posts
Ultimate Partner
New Zealand
Ultimate Partner

5,839Posts

1,080Kudos

755Solutions

Re: Timeout while doing CustomerPaymentService.Insert

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

 


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

Tana
MYOB Moderator
43 Posts
MYOB Moderator
MYOB Moderator

43Posts

92Kudos

3Solutions

Re: Timeout while doing CustomerPaymentService.Insert

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




Thanks,
@Tana


MYOB API Specialist


MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's



Did my answer help?


Mark it as a Solution

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