-
Notifications
You must be signed in to change notification settings - Fork 322
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
Possible regression when query method fails #656
Comments
Right, Tide no longer sends error messages in bodies by default as of f4ef3bb. I recommend starting up a logger, such as tide's built in one, so that you can get these messages from tide's presently-on-by-default logging middleware. #[async_std::main]
async fn main() -> Result<(), std::io::Error> {
tide::log::start();
// ...
} |
Hi @Fishrock123 |
In tide version 0.9.0 when a request failed because
query()
could not parse the query string parameters, it throwed a 400 error with additional information.Current Behavior
When query() cannot parse the querystring parameters it only throws a 400 Bad Request error without any additional information:
Code/Gist
Expected behavior/code
Same behaviour as version 0.9.0:
curl "http://localhost:5000/v1/endpoint?requestor=test":
Environment
Possible Solution
Add error message like in tide's version 0.9.0
Additional context/Screenshots
None
The text was updated successfully, but these errors were encountered: