Skip to content

Commit 52a1001

Browse files
Merge branch 'staging' into prod
2 parents 194624d + 58cd78d commit 52a1001

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1.7.0
1+
1.8.0
22

33
Live-docs: https://tapis-project.github.io/live-docs/?service=GlobusProxy
44

@@ -9,9 +9,4 @@ New features:
99
- none
1010

1111
Bug fixes:
12-
- fixed incorrect error code when globus errors happen while making a transfer
13-
- fixed formatting of error logs
14-
- fixed 400 error on GET when a content-type header is included
15-
- added additional tenant
16-
- better error messages for uncaught exceptions
17-
- change schema to allow for larger file sizes
12+
- none

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,8 @@ $ curl -x GET "http://localhost:5000/v3/globus-proxy/transfers/<client id>/<task
154154
}
155155
```
156156

157+
## Links
158+
159+
docker: https://hub.docker.com/r/tapis/globus-proxy
160+
github: https://github.com/tapis-project/globus-proxy
161+

service/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def handle_transfer_error(exception, endpoint_id=None, msg=None):
228228
error = GlobusInvalidRequestError(msg=message)
229229
if exception.code == 404:
230230
error = EndpointNotFoundError(msg=exception.message)
231+
if exception.code == 'EndpointDeleted':
232+
error = EndpointNotFoundError(msg=exception.message)
231233
logger.error(error)
232234
return error
233235

@@ -335,7 +337,10 @@ def precheck(client_id, endpoints, access_token, refresh_token):
335337
endpoints = list(endpoints.split())
336338
logger.debug(f'have ep list:: {endpoints}')
337339
for endpoint_id in endpoints:
338-
endpoint_info = transfer_client.get_endpoint(endpoint_id)
340+
try:
341+
endpoint_info = transfer_client.get_endpoint(endpoint_id)
342+
except TransferAPIError as e:
343+
raise handle_transfer_error(e)
339344
endpoint_type = endpoint_info["entity_type"]
340345
if endpoint_type == "GCP_mapped_collection": # if it's a globus connect personal ep
341346
connected = is_endpoint_connected(transfer_client, endpoint_id)

0 commit comments

Comments
 (0)