In the parse_args function in reqparse.py, there is a code snippet that concatenates a hardcoded value:
if errors:
abort(
HTTPStatus.BAD_REQUEST, "Input payload validation failed", errors=errors
)
This concatenation occurs when input payload validation fails due to missing required parameters. However, the resulting error message does not reflect the desired help message. The untranslated Chinese error message is as follows:
{
"errors": {
"hello": "Missing required parameter in the JSON body or the post body or the query string"
},
"message": "Input payload validation failed"
}
I understand that this is causing confusion and inconvenience for you. To address this, you can modify the code to provide a more meaningful error message.
In the
parse_args
function inreqparse.py
, there is a code snippet that concatenates a hardcoded value:This concatenation occurs when input payload validation fails due to missing required parameters. However, the resulting error message does not reflect the desired help message. The untranslated Chinese error message is as follows:
I understand that this is causing confusion and inconvenience for you. To address this, you can modify the code to provide a more meaningful error message.