HTTP 500 error while trying to access localhost

I just built my first “web application” for a class using the Google App Engine, and it has deployed correctly and works great on Google servers. However, when I try to access it on localhost, I get a 500 error:

"Server Error An error occurred while retrieving http: // localhost: 8081 / on the website . It may be disabled for maintenance or configured incorrectly."

I tried to use various ports and none of them seem to work. I am 100% sure that I am using the correct port and that the application really works without errors.

I am using Google Chrome and Python 2.7.2 on Mac OS 10.6.8

Any ideas on how to fix this or what configurations to check?

+3
source share
2 answers

Turns out the problem was that GAE was accessing an older version of python on my computer.

I was able to fix this by opening the python launcher, copying the path from "Interpreter" and pasting it into GAE in the "Settings / Python Path" section. In my case, the correct path is: / usr / local / bin / pythonw

It is important to note that since there is no "ok" or "apply" button, you must press enter to apply the path change.

+2
source

"Error 500" is common for "I asked the server to do something, and it failed."

1) View web server error logs

2) Debug the hello world application

and

3) Make sure you can run this "hello world":

https://developers.google.com/appengine/docs/python/gettingstarted/helloworld

4) , :

http://googcloudlabs.appspot.com/setup.html

0

All Articles