I'm working on pset7, register
and I'm at a loss for how to fix this issue. I'm fairly certain my application.py
logic is correct because once the form finally submits everything works as expected. I also don't think it's my HTML, because the login
page as implemented by the staff is doing this too.
I tried putting a print()
statement at the top of the register()
function; and when the page first loads, it prints to the command line and the page displays. I fill in the form and submit, the print
statement doesn't execute, and I get this in chrome:
This page isn’t working ide50-allclay1993.cs50.io didn’t send any data. ERR_EMPTY_RESPONSE
If I open dev tools, I see that the request fails, and there's no Request Method
header. Then if I keep refreshing it eventually works. What else should I look at?
login
gives the same result, I would suspect something in the browser:settings, add-ons, cache? Have you tried ctrl-F5 refresh (clears cache)? Have you tried another browser? Or "safe-mode" (firefox lingo, add-ons disabled)?