I have a python script to upload large file into Google Drive. When passes one hour after the start of the script I get the error: "Refreshing due to a 401 Refreshing access_token" And script exit with error:
File "c:\Python27\lib\site-packages\httplib2-0.9-py2.7.egg\httplib2\__init__.py", line 1291, in _conn_request
response = conn.getresponse()
File "c:\Python27\lib\httplib.py", line 1067, in getresponse
response.begin()
File "c:\Python27\lib\httplib.py", line 409, in begin version, status, reason = self._read_status()
File "c:\Python27\lib\httplib.py", line 373, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''*
How to update the token during loading without interrupting it?