Returning error, but request has status "Completed"
Hello,
I'm using validate() from rp_validator to validate my input data against a schema. The relevant line of code to trigger the error is:
The validation works as expected when using a local test_input.json file. It will pass when all parameters are available, it will result in the job being marked as "Failed" when parameters are missing.
However when running on a serverless instance, the request will be marked as completed, despite the input validation returning an error. The log shows:
This is the response:
Why is this COMPLETED and not FAILED?
Thank you for any hints or pointers.
2 Replies
This is because the RunPod SDK had a change made to it where it can't accept a dict or list for the
error
key, it only accepts an str.
You now have to do something like this:
Or alternatively:
Thank you Askley, it's working now 🙂