httpx.ReadTimeout: The read operation timed out python

Ganesh 6 Reputation points
2022-02-24T12:28:54.597+00:00

We are using python to upload files to OneDrive, however we receiving frequent failures with below errors

File "download_dropbox.py", line 154, in get_one_drive_files
files = my_drive.list_directory(d.get('id'))
File "/root/anaconda3/lib/python3.7/site-packages/graph_onedrive/_decorators.py", line 32, in wrapper_token
wrapped_func = func(*args, **kwargs)
File "/root/anaconda3/lib/python3.7/site-packages/graph_onedrive/_onedrive.py", line 615, in list_directory
response = httpx.get(request_url, headers=self._headers)
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_api.py", line 201, in get
trust_env=trust_env,
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_api.py", line 110, in request
follow_redirects=follow_redirects,
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_client.py", line 802, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_client.py", line 893, in send
history=[],
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_client.py", line 920, in _send_handling_auth
history=history,
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_client.py", line 954, in _send_handling_redirects
response = self._send_single_request(request)
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_client.py", line 990, in _send_single_request
response = transport.handle_request(request)
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_transports/default.py", line 204, in handle_request
resp = self._pool.handle_request(req)
File "/root/anaconda3/lib/python3.7/contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "/root/anaconda3/lib/python3.7/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout: The read operation timed out

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,252 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.