MegaApiClient: All calls to megaclient API hanging
Description: I logged in using “sessionid” and “masterkey”.
what are you trying to do Trying to fetch account info, get nodes, download link, etc.
Actual Behavior: The methods GetAccountInformation(…) , GetNodes(…), etc,., is hanging for ever. what happens Any call to these methods are hanging…
Expected Behavior: The methods GetAccountInformation(…) , GetNodes(…) should return appropriate objects on success. what should happen These methods were working fine previously, but all of sudden not working now
Steps to Reproduce:
- Login using “sessionid” and “masterkey”.
- Call GetAccountInformation(…) or GetNodes(…) or any other method
- No response but instead hanging
- Sometimes i am getting these errors but not consistent " at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte[] key)\r\n at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, Byte[] key)\r\n at CG.Web.MegaApiClient.MegaApiClient.GetAccountInformation()\r\n at
OR
" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)\r\n at System.Threading.Tasks.Task
1.get_Result()\r\n at CG.Web.MegaApiClient.WebClient.PostRequest(Uri url, Stream dataStream, String contentType)\r\n at CG.Web.MegaApiClient.WebClient.PostRequestJson(Uri url, String jsonData)\r\n at CG.Web.MegaApiClient.MegaApiClient.RequestCore[TResponse](RequestBase request, Byte[] key)\r\n at CG.Web.MegaApiClient.MegaApiClient.Request[TResponse](RequestBase request, Byte[] key)\r\n at CG.Web.MegaApiClient.MegaApiClient.GetAccountInformation()\r\n
MegaApiClient Version: 1,7 to 1.9
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- #178 Fix API calls hangs by checking Tls12 support or enforce Tls12 depending of the target: - net40 : check that (SecurityProtocolType)3072 is specified - net45 : check that SecurityProtocolType.Tls1... — committed to gpailler/MegaApiClient by gpailler 3 years ago
- #178 Update documentation about Tls 1.2 requirements — committed to gpailler/MegaApiClient by gpailler 3 years ago
- api calls hanging (#186) * #178 Fix API calls hangs by checking Tls12 support or enforce Tls12 depending of the target: - net40 : check that (SecurityProtocolType)3072 is specified - net45 : check ... — committed to gpailler/MegaApiClient by gpailler 3 years ago
Documentation is updated with a note about new TLS requirement
⚠️ TLS 1.2 support should be configured explicitely when using .NET Framework <= 4.5 or all the API calls to Mega will hang.
https://github.com/gpailler/MegaApiClient/blob/d85f00cbcc2e1b409ce504358db9f0f93c4e139e/docs/index.md?plain=1#L31-L33
using .NET Core 5 with your lib and supports TLS 1.2 and issue still exists and is exactly as itzlokeshjayaraj describes hungs on some and works for some other. I just test with normal HTTP req to mega API and its working fine but with normal HTTP is flagged as suspicious activity and would lock your account. Was good library until this issue is come out, maybe they change something you have to look deeper into this issue.