Parsing form values doesn't seem to be working correctly in the request handlers #11
Comments
|
As an aside, because it's moot if this gets patched to decode JSON instead: I think |
ralphking
commented
Mar 31, 2016
|
Having the same issue and came here for a look - I think you're right. r.ParseForm can't parse JSON. |
dombarnes
commented
Mar 31, 2016
|
I think I'm having a similar issue. If you log in with invalid credentials, you get redirected /profile with blank details even though its failed. Chrome outputs:
|
ralphking
commented
Mar 31, 2016
|
I will test it with JSON decode instead when I get a chance and see if that sticks Log output:
|
|
Thanks guys. We should definitely be using |
|
This should be fixed by the new pull request #14. If you still get errors, please create a new issue, and we'll debug them there. Best, Evan |
waynegerard commentedMar 31, 2016
I've been playing around with this but haven't quite gotten a patch together yet.
It seems like there's an issue with decoding the form values from a JSON post request - namely, it doesn't see the payload as form values and so values (e.g. name, email, fid) are all blank when going to read them.
Entirely possible this is an OS issue: I haven't tried on any other OS (running OS X 10.11.3).
I suspect it might be more robust to treat the payload as JSON and use a JSON decoder instead, but I'm mostly curious if other people are having the same issue.