Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
February 2019
February 2019
My application that has been running for over a year has all of a sudden stopped working. When I debug it, it seems that the CompanyFileService either isn't creating a WebRequestFactory correctly, isn't able to connect via it or is prematurely closing the connection. Below is a screenshot of the error I am receiving:
The code I am using is from an example I found in MYOB community:
try { ShowSpinner(); if (UseCloud) { _configuration = new ApiConfiguration(DeveloperKey, DeveloperSecret, "http://desktop"); _oAuthKeyService = new OAuthKeyService(); //Get tokens if not stored if (_oAuthKeyService.OAuthResponse == null) { var oauthService = new OAuthService(_configuration); _oAuthKeyService.OAuthResponse = oauthService.GetTokens(OAuthLogin.GetAuthorizationCode(_configuration)); } // Load all files from cloud and local simultaneously var cfsCloud = new CompanyFileService(_configuration, null, _oAuthKeyService); cfsCloud.GetRange(OnComplete, OnError); } else { _configuration = new ApiConfiguration(LocalApiUrl); var cfsLocal = new CompanyFileService(_configuration); cfsLocal.GetRange(OnComplete, OnError); } } catch (Exception ex) { MessageBox.Show(ex.Message); }
The error occurs on:
cfsCloud.GetRange(OnComplete, OnError);
Solved! Go to Solution.
February 2019
February 2019
Make sure you have upated the SDK and/or using a "secure" connection method.
See here for details:
February 2019
February 2019
Hi @AndrewBauer
Thanks for reaching out. Last week we made some security changes to our API meaning we will no longer accept connections using the TLS1.0 security protocol. As @Triboss has said, you will need to update the SDK and ensure your integration is using TLS1.1 or greater.
Here is a link to our blog post which has more information on this - http://myobapi.tumblr.com/post/177017431449/tls10-no-longer-supported
Thanks,
Jacob
MYOB API Team
Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/
MYOB API Support Centre - https://apisupport.myob.com
February 2019
41
|
2554
|
|||
4
|
586
|
|||
31
|
1366
|
|||
9
|
512
|
|||
by
KILIQUIDWASTE
September
26
978
|
26
|
978
|