Project

General

Profile

Actions

Bug #3415

closed

[SDKs] Report the server-provided error message when API calls fail in Python SDK

Added by Tom Clegg over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
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">

Subtasks 1 (0 open1 closed)

Task #3478: Review 3415-py-sdk-api-errors-wipResolvedBrett Smith08/05/2014Actions
Actions #1

Updated by Tom Clegg over 9 years ago

  • Target version set to 2014-08-06 Sprint
Actions #2

Updated by Tom Clegg over 9 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Tom Clegg over 9 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
Actions #4

Updated by Tom Clegg over 9 years ago

  • Status changed from In Progress to New
Actions #5

Updated by Tom Clegg over 9 years ago

  • Description updated (diff)
Actions #6

Updated by Brett Smith over 9 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
Actions #7

Updated by Brett Smith over 9 years ago

  • Status changed from New to In Progress
  • Assigned To set to Brett Smith
Actions #8

Updated by Radhika Chippada over 9 years ago

Things looked good to me. LGTM

Actions #9

Updated by Brett Smith over 9 years ago

  • Status changed from In Progress to Resolved

Tom says that he considers this story resolved with the merge.

Actions

Also available in: Atom PDF