shareplum icon indicating copy to clipboard operation
shareplum copied to clipboard

Read timed out. (read timeout=3)

Open twinsed opened this issue 3 years ago • 5 comments

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).

twinsed avatar Mar 19 '21 09:03 twinsed

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.

Screenshot 2021-04-15 at 21 01 48

Lee8009 avatar Apr 15 '21 17:04 Lee8009

I had the same problem. Solution also worked for me. Thanks @Lee8009 !

xplreitr avatar May 26 '21 16:05 xplreitr

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.

patelmaulesh31 avatar Dec 05 '22 12:12 patelmaulesh31

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?

subhash1692 avatar Apr 11 '23 15:04 subhash1692

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.

Lee8009 avatar Apr 11 '23 18:04 Lee8009