-
Notifications
You must be signed in to change notification settings - Fork 142
- Log ConnectionError exceptions #196
base: future
Are you sure you want to change the base?
Conversation
jorik90
commented
Jan 26, 2016
- verify=False for connections to OneDrive api
- Ignore InsecureRequestWarning
- Fix logging to file
- verify=False for connections to OneDrive api - Ignore InsecureRequestWarning - Fix logging to file
Crontab env
Does this require a specific python module ? I tried to run your branch and had the following error: |
Weird. I'm just running a pretty clean Raspbian (Debian) installation. Could you try commenting out line 31 and 100 in onedrive_d/od_onedrive_api.py? It should be in the urllib3 package, which is required anyway. |
It seems to work this way. Synchronization is going on pretty well. |
Weird. I guess you have tons of warnings in the log file? That's the reason I added it. There's only 1 issue I encouter personally about a few dozen times. Sometimes de API does not return the correct file size. This is giving me lot's of duplicates, mostly for PDF's and some photos. Problem is described here: http://stackoverflow.com/a/27031491. I'll try to work around that as well. I'll also check if I can only filter out the InsecureRequestWarning's when the import is available. |
Requests 2.11.0 documentation: Some previous releases accidentally accepted non-strings as acceptable header values. This release does not. This solved the error: requests.exceptions.InvalidHeader: Header value 961 must be of type str or bytes, not <class 'int'>