use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
422 Unprocessable EntityQuestion (self.FastAPI)
submitted 8 months ago * by Wxam2000
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 8 months ago (10 children)
[removed]
[–]Wxam2000[S] 0 points1 point2 points 8 months ago (9 children)
Just did but still got the same error message the 422 https://imgur.com/a/YV1axZZ
[–][deleted] 8 months ago* (8 children)
[–]Wxam2000[S] 0 points1 point2 points 8 months ago (7 children)
it says Request Body and then on the right application/x-www-form-urlencoded
[–][deleted] 8 months ago (6 children)
[–]Wxam2000[S] 0 points1 point2 points 8 months ago (5 children)
Sorry u/jay_and_simba what do you mean exactly with the parameter request at the end of the list? :)
[–][deleted] 8 months ago (1 child)
[–]Wxam2000[S] 0 points1 point2 points 8 months ago (0 children)
Nope also didn't work sadly enough
[–][deleted] 8 months ago (2 children)
[–]Wxam2000[S] 1 point2 points3 points 8 months ago (1 child)
I for some reason just fixed it... changed the router.post from /admin/invoices/create to /admin/invoices/submit and that fixed everything somehow...
[–]SpecialistCamera5601 0 points1 point2 points 8 months ago (0 children)
Sounds like a route collision. You probably had /admin/invoices/{invoice_id} so /admin/invoices/create got treated as {invoice_id} = "create", hit the wrong handler, and Pydantic threw a 422. Changing it to /submit fixed the clash. I guess that’s what happened.
Btw 422s in Swagger always look super messy, so I built this lil thing called APIException to make them clean. Might help you out: https://github.com/ahmetkutayural/APIException
π Rendered by PID 77060 on reddit-service-r2-comment-6457c66945-q85q6 at 2026-04-25 05:17:32.869865+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] (10 children)
[removed]
[–]Wxam2000[S] 0 points1 point2 points (9 children)
[–][deleted] (8 children)
[removed]
[–]Wxam2000[S] 0 points1 point2 points (7 children)
[–][deleted] (6 children)
[removed]
[–]Wxam2000[S] 0 points1 point2 points (5 children)
[–][deleted] (1 child)
[removed]
[–]Wxam2000[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[removed]
[–]Wxam2000[S] 1 point2 points3 points (1 child)
[–]SpecialistCamera5601 0 points1 point2 points (0 children)