Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddel gives stacktrace when omitting --project argument #87

Closed
jwhitney31337 opened this issue Oct 25, 2017 · 2 comments
Closed

ddel gives stacktrace when omitting --project argument #87

jwhitney31337 opened this issue Oct 25, 2017 · 2 comments

Comments

@jwhitney31337
Copy link

If I give the command:
ddel --jobs $JOBID
and don't give --project, I get:
Exception HttpError: <HttpError 404 when requesting https://genomics.googleapis.com/v1alpha2/operations?filter=projectId+%3D+None+AND+status+%3D+RUNNING+AND+labels.user-id+%3D+jwhitney+AND+labels.job-id+%3D+samcat--jwhitney--171025-185530-59&alt=json returned "Project id "None" not found">
Traceback (most recent call last):
File "/usr/local/bin/ddel", line 9, in
load_entry_point('dsub==0.0.0', 'console_scripts', 'ddel')()
File "build/bdist.linux-x86_64/egg/dsub/commands/ddel.py", line 123, in main
File "build/bdist.linux-x86_64/egg/dsub/providers/google.py", line 1091, in delete_jobs
File "build/bdist.linux-x86_64/egg/dsub/providers/google.py", line 1055, in lookup_job_tasks
File "build/bdist.linux-x86_64/egg/dsub/providers/google.py", line 689, in list
File "build/bdist.linux-x86_64/egg/retrying.py", line 49, in wrapped_f
File "build/bdist.linux-x86_64/egg/retrying.py", line 206, in call
File "build/bdist.linux-x86_64/egg/retrying.py", line 247, in get
File "build/bdist.linux-x86_64/egg/retrying.py", line 200, in call
File "build/bdist.linux-x86_64/egg/dsub/providers/google.py", line 333, in execute
File "build/bdist.linux-x86_64/egg/oauth2client/_helpers.py", line 133, in positional_wrapper
File "build/bdist.linux-x86_64/egg/googleapiclient/http.py", line 842, in execute
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://genomics.googleapis.com/v1alpha2/operations?filter=projectId+%3D+None+AND+status+%3D+RUNNING+AND+labels.user-id+%3D+jwhitney+AND+labels.job-id+%3D+samcat--jwhitney--171025-185530-59&alt=json returned "Project id "None" not found">

This condition should be checked and ddel should prompt with a usage message indicating that project is required.

@mbookman
Copy link
Contributor

Thank-you for the report Joe. Will be fixed in the next release.

eap pushed a commit that referenced this issue Oct 27, 2017
Problem was reported in #87.

PiperOrigin-RevId: 173580233
@eap
Copy link
Contributor

eap commented Oct 30, 2017

This should be fixed as of our latest release - out on github and available via pip. Thanks again for the report!

@eap eap closed this as completed Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants