-
-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key not found: driveType #152
Comments
There also seems to be some API issues atm - dealing with shared folders. To rule this out can you try connecting from a more stable connection and see if the issue persists? |
I'm pretty sure it is just at Microsoft's end as it appears to be working now (my current connection is about as stable as is possible). It might be good to replace the error message with something more explanatory though. |
Handling random errors is something certainly that needs to be done better in the application - will see what can be done in this instamce |
I've just encountered a similar error, maybe the same cause.
After that, further uploading stopped, a new remote file was downloaded and the program became idle:
I had to stop onedrive and run it again with "--synchronize --local-first" switches to resume upload (now I have to wait several hours for the program to rescan all the local files logging that they "have not changed" :( ) Generally speaking, I think the logic of the program is problematic in general. Every minor error with a single file may lead to termination of the whole sync task or even to crash. Such errors are inevitable when there are a lot of data to sync, and the program should be tolerant to them, so that constant manual intervention in syncing process shouldn't be necessary. |
Once again, now with verbose logging on:
The error was indeed handled gracefully, i.e. without crash. But further uploads were not done. |
So all objects should have a 'size' property as it is being requested. If a 'size' is not present, then there is something going on with the OneDrive API being inconsistent in the details being presented back. It is easy enough to fix the code that in the event that no size property is provided, to assume 0. The impact here is that the 'size' property is being used to determine if there is enough space to upload new files. |
I think there is nothing wrong with the size, it's just a network connectivity issue. That's why I suppose it's the same issue as @dawbarton reported. I think in case of any such unclassified problems the program should just try one more time and if the problem persists - skip to the next item. Otherwise, it's almost impossible to sync large amounts of data with imperfect Internet connection. |
This is what I have been trying to do - as previously, the application would segfault and exit - mostly all these things are now taken care of - it's the loose ends like this issue that still need closing out. |
@borouhin, @dawbarton
|
@borouhin, @dawbarton |
Will try to check this evening when I'm on my home internet connection (which is more flaky than my work one). |
I'm testing the new branch now, will resopond ASAP. |
Unfortunately, the PR didn't help. the program crashed after logging an attempt to handle error gracefully:
|
@borouhin OK - thats a crash in a different area, updated the PR. If you can retry testing the PR with the latest commits that would be great. |
@abraunegg, optical fiber is hanging on my fence for 2 months already, waiting for being connected. Something not ready on ISP side yet... So currently it's a dedicated WiFi link, theoretically up to 30 Mpbs, but usually not more than 15 Mbps and, most importantly, with a noticeable packet loss. As for the updated PR. I've tested it and I encountered a similar error. Not "key not found", but "HTTP request returned status code 401 (Unauthorized)" I don't know if it's also because of the bad connection or it's some bug on OneDrive side. But previously such errors caused crashes too.
That's better, but still not quite the desired behavior, as re-checking a lot of files takes a lot of time. Ideally after any error with a single file the program should retry with that file and/or proceed to the next one in queue. |
* Add try & catch in the case of a 504 error being generated to upload the file. Currently, if a 504 is generated, it is handled gracefully, but further files to upload are stopped * Update where ever there is a 404 try block, add a if statement to capture if a 5xx error is returned as well
PR Merged |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After updating to the latest master this morning I keep getting the error
After applying the
--debug-https
option, it becomes a bit more clear -so it looks like the connection timing out is causing some other random error in onedrive. I'm just going to wait and hope that this is just an issue at Microsoft's end. Thanks.
The text was updated successfully, but these errors were encountered: