shareplum
shareplum copied to clipboard
Read timed out. (read timeout=3)
Hi!
I have an issue after an upload: the file is transferred and it is completed (is a 160MB file) but then I get an error, even if I set Timeout to None.
("Shareplum HTTP Post Failed : HTTPSConnectionPool(host='xxxxx.sharepoint.com', port=443): Read timed out. (read timeout=3)",)
this happens inside a try, but after that everything goes smooth.
def upload_to_sharepoint_drop_point(tar_file_name, folder):
try:
logging.info("Beginning transfer")
with open(tar_file_name, mode='rb') as file:
file_content = file.read()
logging.info("Uploading")
folder.upload_file(file_content, tar_file_name)
except Exception as e:
log_stacktrace(e, "upload on drop-point")
This doesn't happen on small size files(like 10MB).
Had the same problem solved it by using the folder.py file from the github repo as it does not match the one automatically downloaded from the pip. see attached screenshot with the timeout which is not present on the pip version.
I had the same problem. Solution also worked for me. Thanks @Lee8009 !
Hi,
I am facing the same issue, read time out=3 and i have apply timeout=None but it is still showing Read time out error.
Hi Guyz, I am facing the same issue. Can someone suggest how to work with this folder.py file? Should I uninstall the shareplum and then use the classes and methods from this file?
Hi Guyz, I am facing the same issue. Can someone suggest how to work with this folder.py file? Should I uninstall the shareplum and then use the classes and methods from this file?
Do not delete shareplum, just navigate into the lib folder in your python virtual environment find the folder named shareplum and swap out the folder.py file contents with the content from the github repository.