-
Notifications
You must be signed in to change notification settings - Fork 30
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
Invalid input exception when calling api.jobs.get_report_async #14
Comments
I've had a quick look at the Cortex code, and I'm not that familiar with Scala but it looks like the atMost has to be a FiniteDuration (so Inf is invalid): Line 148 in JobCtrl.scala :
|
Having the same error. Any suggestion as of this moment? |
@efij The only solution while the bug is there is to was to wait until the job is likely to have finished before calling get_report_async :( |
I still have the same error in the last version of cortex (3.1.4-1)
|
Same error using latest Docker images. |
Following exception is raised when calling api.jobs.get_report_async immediately after starting job with api.analyzers.run_by_name.
cortex4py.exceptions.InvalidInputError: Invalid input exception
> requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://<IP>/api/job/<job_id>/waitreport?atMost=Inf
If I insert a five-second sleep statement before calling get_report_async then it succeeds. The same error occurs if I request the waitreport API endpoint with the requests module with the atMost=Inf parameter.
If I remove the atMost=Inf parameter the request succeeds without needing the sleep statement (i.e. it waits for the analyzer to complete).
Looking at the cortex logs, the following exception is thrown for the request:
The text was updated successfully, but these errors were encountered: