Closed ByteCommander closed 5 years ago
These 'Encountered API Error' is from onedrivesdk:
def item_request_call(repo, request_func, *args, **kwargs):
while True:
try:
return request_func(*args, **kwargs)
except onedrivesdk.error.OneDriveError as e:
logging.error('Encountered API Error: %s.', e)
according with their documentarion:
Certain characters have special meanings when used in file names in OneDrive, SharePoint, Windows and macOS, such as "" for wildcards, and "\" in file name paths. If a file or folder you’re trying to upload to OneDrive contains any of the characters listed below, it may prevent files and folders from syncing. Rename the file or folder to remove these characters before you upload it. ... Characters that aren't allowed in file and folder names in OneDrive for Business on SharePoint Server 2013 ~ " # % & : < > ? / \ { | }.
Can you update me if this is still an issue and the correct filename?
It is a repeating issue, but not popping up as often recently since I didn't add many files. However, except for username
(originally 8 lowercase latin letters, nothing special), the error message regarding the invalid character was unaltered. I literally created a file named testfile
in the root of my OneDrive synced folder and got this.
That's very difficult to help. As you can see in the implementation that I put above, this is a onedrivesdk error. I think is a good idea to open an issue on their side...
What version of onedrivesdk are you using (you can get running pip3 freeze | grep onedrivesdk
)? This is a very difficult issue to reproduce. I have some files with not supported names that was sync, and I have 4gb of data...
I just installed the current version of this repository on my Ubuntu 16.04 machine using the recommended pip3 method. I successfully configured my account and drive to sync with the local OneDrive folder in my home directory.
However, I am facing various problems:
Sometimes files or whole folders are not getting picked up correctly or fail to synchronize, especially when copying or creating multiple files/folders into the OneDrive directory at once. This can result in
I get the following lines in my log file, for any random file (mostly/only? in the OneDrive root directory though), even when there is no activity in the synchronized folder:
Or the following line:
I wrote a wrapper script to at least get notified whenever it logs an error, but it's still really upsetting that every time I do something in my OneDrive folder, I should actually check if the change got correctly synchronized online, and if not, try to move the failed files around until they get synchronized correctly.
Could you please try and have a look into these issues? If I can provide any debugging help, please let me know what information you need.