Actions
Bug #3415
closed[SDKs] Report the server-provided error message when API calls fail in Python SDK
Story points:
0.5
Description
Example (the unreported message here is "uuid does not match hash of manifest_text"):
2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr Traceback (most recent call last): 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr File "/tmp/crunch-src/crunch_scripts/split-fastq.py", line 80, in <module> 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr arvados.current_task().set_output(put_manifest(manifest_text, [arvados.getjobparam('reads')])) 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr File "/tmp/crunch-src/crunch_scripts/split-fastq.py", line 27, in put_manifest 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr 'manifest_text': crm.manifest_text() 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr File "/usr/local/lib/python2.7/dist-packages/google_api_python_client-1.2-py2.7.egg/oauth2client/util.py", line 132, in positional_wrapper 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr return wrapped(*args, **kwargs) 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr File "/usr/local/lib/python2.7/dist-packages/google_api_python_client-1.2-py2.7.egg/apiclient/http.py", line 723, in execute 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr raise HttpError(resp, content, uri=self.uri) 2014-07-29_20:53:33 qr1hi-8i9sb-jbupkux1bf96e56 6996 0 stderr apiclient.errors.HttpError: <HttpError 422 when requesting https://qr1hi.arvadosapi.com/arvados/v1/collections?alt=json returned "Unprocessable Entity">
Updated by Tom Clegg over 10 years ago
- Subject changed from [API] Stop using save!() because it does not return a useful message with the exception. to [API] Report the server-provided error message when API calls fail in Python SDK
Updated by Brett Smith over 10 years ago
- Subject changed from [API] Report the server-provided error message when API calls fail in Python SDK to [SDKs] Report the server-provided error message when API calls fail in Python SDK
- Category set to SDKs
Updated by Brett Smith over 10 years ago
- Status changed from New to In Progress
- Assigned To set to Brett Smith
Updated by Brett Smith over 10 years ago
- Status changed from In Progress to Resolved
Tom says that he considers this story resolved with the merge.
Actions