Program panic if providing wrong query names in an endpoint that parses uri query.
Correct Behaviour
Program return Result with Error.
Reproduce
Make an endpoint which call uri_query method with struct data.
Access the URL without query or with wrong query names.
Causes
When error occurs, serde do not call deprecated Error::description anymore instead of fmt. When calling to_string for Error, it calls fmt too. This makes infinite loop occurs and stack overflow. This only occurs at running app, test case would not fail. I am not sure why.
Issue
Program panic if providing wrong query names in an endpoint that parses uri query.
Correct Behaviour
Program return
Result
withError
.Reproduce
uri_query
method with struct data.Causes
When error occurs, serde do not call deprecated Error::description anymore instead of fmt. When calling to_string for Error, it calls fmt too. This makes infinite loop occurs and stack overflow. This only occurs at running app, test case would not fail. I am not sure why.