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

Improve job resubmit error message #9

Open
richcar58 opened this issue Jul 8, 2022 · 0 comments
Open

Improve job resubmit error message #9

richcar58 opened this issue Jul 8, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@richcar58
Copy link

The following error was reported. Improve the error message when the referenced job is not found and analyze how the SQL root error could occur.

Code:
job_id = "4c02f744-1756-42ca-859f-88cf9ce4ee5e-007"
t.jobs.resubmitJob(jobuuid=job_id)

Output:
InvalidInputError Traceback (most recent call last)
Input In [9], in <cell line: 1>()
----> 1 t.jobs.resubmitJob(jobuuid=job_id)

File /usr/local/lib/python3.8/site-packages/tapipy/tapis.py:1357, in Operation.call(self, **kwargs)
1355 # for any kind of non-20x response, we need to raise an error.
1356 if resp.status_code in (400, 404):
-> 1357 raise errors.InvalidInputError(msg=error_msg, version=version, request=r, response=resp)
1358 if resp.status_code in (401, 403):
1359 raise errors.NotAuthorizedError(msg=error_msg, version=version, request=r, response=resp)

InvalidInputError: message: JOBS_JOBRESUBMIT_NOT_FOUND Job 4c02f744-1756-42ca-859f-88cf9ce4ee5e-007 not found in resubmission cataloge : DB_SELECT_UUID_ERROR Unable to select JobResubmit with uuid 4c02f744-1756-42ca-859f-88cf9ce4ee5e-007: ERROR: column "uuid" does not exist
Hint: Perhaps you meant to reference the column "job_resubmit.id".

@richcar58 richcar58 added the enhancement New feature or request label Jul 8, 2022
@richcar58 richcar58 self-assigned this Jul 8, 2022
@richcar58 richcar58 transferred this issue from tapis-project/tapis-java Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: On Hold
Development

No branches or pull requests

2 participants