You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that the difference is that I'm using verify=False and this is verify=True in pyclowder. This is set in connector (where it is set to True) and the default is True.
Should we switch this to False, or just do False if the files are above some size?
timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds). If no timeout is specified explicitly, requests do not time out.
So that means that we have not received a response from clowder for 5 seconds. Does this happen at the end of the upload or in the middle?
Activity
robkooper commentedon Aug 5, 2022
can you show the code you use instead?
tcnichol commentedon Aug 5, 2022
Sure.
bingzhang commentedon Aug 18, 2022
i can also reproduce this issue when uploading large files.
tcnichol commentedon Aug 18, 2022
I'll take a look at this soon. Since I have code that works I believe I should be able to fix it.
tcnichol commentedon Aug 18, 2022
I notice that the difference is that I'm using verify=False and this is verify=True in pyclowder. This is set in connector (where it is set to True) and the default is True.
Should we switch this to False, or just do False if the files are above some size?
robkooper commentedon Aug 18, 2022
verify == FALSE means it does not test SSL certs, this is bad. This should only be used as a last resort in case you use self signed certs.
tcnichol commentedon Aug 19, 2022
OK. Will look into a better fix.
tcnichol commentedon Aug 23, 2022
@bingzhang how large of a file did you test and have it fail? Could you share it?
bingzhang commentedon Aug 23, 2022
something like 1 GB.
tcnichol commentedon Aug 23, 2022
OK.
If I use my code above and put verify=True, a file that's 1.8 GB will upload.
If i use
file_id = client.post_file("/uploadToDataset/%s" % dataset_id, path_to_large_file)then i get a timeout.
There is
self.timeout = kwargs.get('timeout', 5)in the client code
seeing if i can upload if i add value
robkooper commentedon Aug 23, 2022
from https://requests.readthedocs.io/en/latest/user/quickstart/#timeouts:
So that means that we have not received a response from clowder for 5 seconds. Does this happen at the end of the upload or in the middle?
tcnichol commentedon Aug 23, 2022
I'm saying the middle based on the time. Uploading a 1.8 GB file (which I tried) took about 30 seconds.