nextcloud / integration_onedrive

🗔 Integration of Microsoft OneDrive into Nextcloud
GNU Affero General Public License v3.0
33 stars 7 forks source link

Migration does not start / stuck #9

Open simao-silva opened 3 years ago

simao-silva commented 3 years ago

I've set up the Azure API settings in Nextcloud. However, when trying to import I've got stuck with the message 0 files imported (0 B) (0%) Onedrive import process will begin soon .

The request in Developers tools gives the error "Client error: 'GET https:\/\/graph.microsoft.com\/v1.0\/me\/calendars' resulted in a '429 Too Many Requests' response:\n{\r\n \"error\": {\r\n \"code\": \"ApplicationThrottled\",\r\n \"message\": \"Application is over its Request limit.\",\r\n \"inn (truncated...)\n". Also when trying to import a calendar I've got "cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)".

Can you tell me what is wrong or why is this happening?

julien-nc commented 3 years ago

Hi, Both errors might be related. It seems you've reached the request number limit. I don't know how it happened.

Does the 429 Too Many Requests error show up directly after launching the storage import? When you reload the page, do you still see your calendar list, storage size and contact number? Did you check if your microsoft account was blocked? (it happened to me a few times) What background job method did you select in admin settings? It is recommended to use "Cron" method. Storage import jobs are launched when Nextcloud background jobs are triggered.

simao-silva commented 3 years ago

Changing to Cron start the process but it stills get stuck, now at 1%. However, now I don't get the 429 error. I am still unable to import calendars. I've got the 401 error "cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)".
I've checked and my account isn't block.