meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.33k stars 510 forks source link

Cannot login with Android sdk #2588

Open Kitsune2222 opened 3 years ago

Kitsune2222 commented 3 years ago

I'm try login in Example apk but result is MainActivity: onRequestTemporaryError: LOGIN (Error code: -3, Error string: Request failed, retrying) Also from logs

2021-09-10 12:18:24.620 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:1430: cs POST target URL: https://g.api.mega.co.nz/cs?id=excwfmvakt&ak=l4cmkI7B&v=2
2021-09-10 12:18:24.624 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:740: Informing cURL of timeout reached for 2 at 17302165
2021-09-10 12:18:24.631 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:2686: Adding curl socket 88 to 1
2021-09-10 12:18:24.632 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:2673: Removing socket 88
2021-09-10 12:18:24.634 17564-17600/nz.mega.android.bindingsample I/chatty: uid=10416(nz.mega.android.bindingsample) Thread-246 identical 1 line
2021-09-10 12:18:24.637 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:2673: Removing socket 88
2021-09-10 12:18:24.638 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:1820: cs cURL: Could not resolve: g.api.mega.co.nz (Could not contact DNS servers)
2021-09-10 12:18:24.638 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:1820: cs cURL: Closing connection 6
2021-09-10 12:18:24.640 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:2182: cs CURLMSG_DONE with error 6: Couldn't resolve host name
2021-09-10 12:18:24.640 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:2246: CURLMSG_DONE with HTTP status: 0 from g.api.mega.co.nz - 
2021-09-10 12:18:24.641 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: net.cpp:2301: cs REQ_FAILURE. Status: 0  Content-Length: -1  buffer? 0  bufferSize: 0
2021-09-10 12:18:24.642 17564-17600/nz.mega.android.bindingsample D/AndroidLogger: megaclient.cpp:2108: Retrying cs request in 88 ds
Kitsune2222 commented 2 years ago

This error from 3.9.0 version in latest 3.12.1 the same problem, ExampleApp login not working in Android. In version 3.8.9a, all ok.