Forums

Quickstart new Flask project doesn't work for me (403 error?)

[SOLVED]

I'm new to Pythonanywhere and I tried to follow the 'Hello World'-App tutorial. At step 4, just before step 5, I'm asked to choose a path for the main file. The default is /home/muellerfelix/mysite/flask_app.py.

When I click "next", I immediately get:

"Sorry, there was an error connecting to the server. Please try again in a few moments..."

On the Firefox developer console I see a failed request: POST https://www.pythonanywhere.com/user/muellerfelix/webapps/quickstart_new_flask_app [HTTP/1.1 403 Forbidden 142ms]

I'm having a free account right now.

Do I actually have to try in a few moments? I already tried a couple of times at different times of the day. If not, what is the issue? Is there a workaround? Thank you in advance!

That sounds like you've logged out on a different tab. Just reload the page and try again.

That was not the problem.

But it's solved now: I had to set network.http.sendRefererHeader in firefox to 2 (the default option, always send referrer header).