[BUG] 422 using a dict body with 0.27.0
See original GitHub issueThe following endpoint was running fine with 0.26.0 and Python 3.6.5:
@app.patch(“/ps/user”) async def patch_user(user_dict: dict, add: List[str] = Query(None)) -> dict: …
but with upgrading to 0.27.0 I got the following 422 error:
{
"detail": [
{
"loc": [
"query",
"user_dict"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
I can’t find and according change in the last commits so I assume this is a bug?
Thanks, Daniel
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
422 Unprocessable Entity - value is not a valid dict when ...
When i put a class having a name variable in argument of the function i keep getting "422 Unprocessable Entity - value is...
Read more >How To Fix the HTTP 422 Error - Kinsta
Unlike other HTTP errors, the HTTP 422 code will keep reappearing until you manage to troubleshoot the problem. Here's how to fix it....
Read more >python-benedict - PyPI
python-benedict is a dict subclass with keylist/keypath support, ... Wherever a key is used, it is possible to use also a list (or...
Read more >Why am I getting a status code of 422 when making a call to ...
The error message is telling you that the search parameter needs to be identified by a q charactger. Try the following:
Read more >Using dictionaries to store data as key-value pairs
The dictionary stores objects as key-value pairs and can be used to represent complex real-world data.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
wow, that was fast. It’s working now with 0.27.2 👍 Thanks
Yep, it’s an old design decision by Requests 🤷😅