URL expires after retries

Description

In client.py line 1790, the client will continue to retry until it works and when it does go through the URL may have expired.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Traceback (most recent call last): File "input_to_database.py", line 241, in <module> allFiles = getCenterInputFiles(syn, synId, center) File "input_to_database.py", line 85, in getCenterInputFiles allFiles.append(([synid],[reNameFile(synid)])) File "input_to_database.py", line 53, in reNameFile temp = syn.get(synId) File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/synapseclient/client.py", line 690, i n get return self._getWithEntityBundle(entityBundle=bundle, entity=entity, **kwargs) File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/synapseclient/client.py", line 778, i n _getWithEntityBundle self._download_file_entity(downloadLocation, entity, ifcollision, submission) File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/synapseclient/client.py", line 833, i n _download_file_entity downloadPath, fileResult['fileHandle']) File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/synapseclient/client.py", line 1790, in _downloadFileHandle raise exc_info[0](exc_info[1]) synapseclient.exceptions.SynapseHTTPError: 403 Client Error: Forbidden <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Request has expired</Message><X-Amz-Expires>30</X-Amz-Expires><Expires>2017-06-07T01:22:14Z</Expires><ServerTime>2017-06-07T01:23:54Z</ServerTime><RequestId>917569FF1AF128CB</RequestId><HostId>bicPfccxUxJnMqb2qbq4nJZOnTimQHsG8L9Ztrv3Mf8l3GfXYhQgDzaofkhuvH3t7OOaqO+krOA=</HostId></Error>

Environment

None

Status

Assignee

Ziming Dong

Reporter

Thomas Yu

Labels

None

Validator

Thomas Yu

Release Version History

None

Fix versions

Priority

Major