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

get results of "error"ed job: return 424 iso 400 JobNotFinished #231

Open
soxofaan opened this issue Oct 12, 2023 · 0 comments
Open

get results of "error"ed job: return 424 iso 400 JobNotFinished #231

soxofaan opened this issue Oct 12, 2023 · 0 comments

Comments

@soxofaan
Copy link
Member

>>> con.get("/jobs/j-1001f917bab34ef1aeefd460e329d0e1").json()["status"]
"error"

>>> r = con.get("/jobs/j-1001f917bab34ef1aeefd460e329d0e1/results", check_error=False)
>>> (r, r.json())

(<Response [400]>,
 {'code': 'JobNotFinished',
  'id': 'r-047b9e98c45148acb52d812eb0694400',
  'message': 'Batch job has not finished computing the results yet. Please try again later or contact our support.'})

per spec, should be HTTP 424, with:

The request can't be fulfilled as the batch job failed. This request will deliver the last error message that was produced by the batch job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant