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:
validated_input = validate(input, INPUT_SCHEMA)if "errors" in validated_input: return {"error": "validated_input["errors"]}
validated_input = validate(input, INPUT_SCHEMA)if "errors" in validated_input: return {"error": "validated_input["errors"]}
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: