Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
I might have figured it out. If I understand correctly, you said that you
accessed http://localhost:8888 from a web browser, and it returned the
server.py code, verbatim, uninterpreted. Is that correct?
If so, then something is wrong in the way it's being executed (and I only know
this because I made the same mistake...)
Have you configured an existing web server to respond to port 8888, and placed
server.py in there as it's default accessed document? I did this, and believe
me, it doesn't work! :) You need to run the command python server.py which
should spawn a new, purpose built, web server that replies to a specific set of
instructions. Anything else should reply with an HTTP 500 error code, hence my
suspicion that you've configured another web server to reply to port 8888.
Obviously, I'm happy to be proven wrong!
If my suspicion is wrong, please confirm the operating system you are using for
your development platform, so I know what to suggest next.
Thanks, Jon
Original comment by jon@sprig.gs
on 11 Dec 2010 at 12:48
[deleted comment]
[deleted comment]
got it.. i guess it was a simple syntax error
Original comment by rfausak
on 11 Dec 2010 at 9:35
Original comment by jon@sprig.gs
on 19 Dec 2010 at 12:30
I seem to be having this same issue. The server is running on localhost:8888 i
can goto my web browser and point to http://localhost:8888/ and responds with:
Error response
Error code 501.
Message: Unsupported method ('GET').
Error code explanation: 501 = Server does not support this operation.
However when I run the app and click on an action, I get "Cannot connect to
localhost Make sure...." every time. What type of syntax error did you have and
how did you fix it?
Thanks
Original comment by josh...@gmail.com
on 1 Jul 2011 at 4:28
Josh, can you confirm how you've got to the point where you're running a web
server on localhost:8888? Have you, from a command line, run python server.py,
or have you copied the server.py into a pre-configured web server?
Original comment by jon@sprig.gs
on 1 Jul 2011 at 7:49
what version of python do you have installed?
Original comment by rfausak
on 1 Jul 2011 at 9:21
Original issue reported on code.google.com by
rfausak
on 10 Dec 2010 at 8:37