Partner Zone
Partner Zone

.NET SDK Timeout

Partner Val_VM
1 Post




.NET SDK Timeout

I'm using .NET SDK, inserting a large number of ServiceBills, around 1000+. To do them all takes about 2Hrs.
Every time around 20 minutes mark I get this error - see below.
MYOB file is on local development PC.
There is not much info in Exception, I tried to cast execption to ApiValidationException, APiCommunicationException, butt Errors collection is always empty.
After re-launching the process it runs like nothing happens, inserts the ServiceBill it stumbled upon and dies again after about 20 mins.
Is it a Timeout of some sort?


MYOB.AccountRight.SDK.ApiValidationException: Encountered a validation error ( ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at MYOB.AccountRight.SDK.Communication.BaseRequestHandler.HandleResponseCallback[T,TResp](IAsyncResult asynchronousResult) in c:\projects\accountright-live-api-net-sdk\MYOB.API.SDK\SDK\Communication\BaseRequestHandler.cs:line 118
--- End of inner exception stack trace ---
at MYOB.AccountRight.SDK.Extensions.ExceptionExtensions.ProcessException(Exception ex, Uri requestUri) in c:\projects\accountright-live-api-net-sdk\MYOB.API.SDK\SDK\Extensions\ExceptionExtensions.cs:line 61
at MYOB.AccountRight.SDK.Services.ServiceBase.MakeApiGetRequestSync[T](Uri uri, ICompanyFileCredentials credentials, String eTag) in c:\projects\accountright-live-api-net-sdk\MYOB.API.SDK\SDK\Services\ServiceBase.cs:line 149
at MYOB.AccountRight.SDK.Services.ReadableRangeService`1.GetRange(CompanyFile cf, String queryString, ICompanyFileCredentials credentials, String eTag) in c:\projects\accountright-live-api-net-sdk\MYOB.API.SDK\SDK\Services\Version2\ReadableRangeService.cs:line 80

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
Get the conversation started and make a new post Start a Post