GNS-Science / nshm-toshi-api

An extensible API where task metadata, and important input and output files relating to data-intensive science processes are retained. Custom task schemas can be defined to support their meta-data needs.
GNU Affero General Public License v3.0
0 stars 0 forks source link

APi errors #103

Closed chrisbc closed 2 years ago

chrisbc commented 2 years ago

Inversion runs: R2VuZXJhbFRhc2s6ODA0NlFNVTc0 and R2VuZXJhbFRhc2s6ODExOVI0VHhB

in batch fargate log ...

2022-02-07T18:04:29.516+13:00 self._toshi_api.automation_task.upload_task_file(task_id, java_log_file, 'WRITE')
...
2022-02-07T18:04:29.517+13:00 requests.exceptions.HTTPError: 504 Server Error: Gateway Timeout for url: https://aihssdkef5.execute-api.ap-southeast-2.amazonaws.com/prod/graphql

and in Toshi API log

Previous request

2022-02-07T18:03:59.483+13:00 SearchManager.index_document https://search-nzshm22-toshi-api-es-prod-cj4taqcgnefophpxzan55xeswa.ap-southeast-2.es.amazonaws.com/toshi_index/_doc/ThingData_81865pDzH_object.json
...
2022-02-07T18:03:59.537+13:00 b'{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [files]"}],"type":"mapper_parsing_exception","reason":"failed to parse [files]","caused_by":{"type":"illegal_state_exception","reason":"Can\'t get text on a START_OBJECT at 1:78"}},"status":400}'

... and then

2022-02-07T18:03:59.954+13:00 START RequestId: a9ff3ded-cde6-4ebc-93ce-803742f23d35 Version: $LATEST
2022-02-07T05:04:29.981Z a9ff3ded-cde6-4ebc-93ce-803742f23d35 Task timed out after 30.02 seconds
chrisbc commented 2 years ago

fixed with https://github.com/GNS-Science/nshm-toshi-api/commit/d5bfc1320d97a5432779e01ac02eec4d1f08e787