Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
mundo0349117yThat is in the browser, I believe you should be looking at the request logs in the server.
Also a 400 is typically your fault... 2 hours? Did you have lunch in that time too? -
mundo0349117yAaand that error page can e customized with more data, and guess what.. it is your job to do so. Come on dude, effort.
-
620hun81887y@kyleperik "Body can't be parsed"
@mundo03 That's what the browser received from the server. It's exactly the same thing in the server logs.
I'm not sure what it was, but it's gone. I think it was due to manually setting Content-type on the request, although it was set to what the browser sets it to. -
620hun81887y@mundo03 Also, Django normally shows very helpful error stacks. That's why this "something's wrong" type of error pissed me off.
-
ILMostro2427yDon't pay attention to @Skayo, kids.
@620hun, take a look at the django documentation for debugging and error-reporting.
https://docs.djangoproject.com/en/... -
@620hun yeah that sounds right... it sounds like a post or some method send body with the wrong Content-Type and Django tried to automatically parse it
-
620hun81887y@Alireza6677 It was on
@kyleperik Weird, because both the working and the not working requests had the same Content-type
Thanks Django for this very elaborate error message. It's not like I spent the last 3 hours trying to debug it or anything.
undefined