square / PonyDebugger

Remote network and data debugging for your native iOS app using Chrome Developer Tools
Other
5.87k stars 595 forks source link

Can't access PonyGateway lobby: tornado.access:404 #190

Open davidgruebl opened 8 years ago

davidgruebl commented 8 years ago

After encountering and working around https://github.com/square/PonyDebugger/issues/189 I ran into the following:

$ ponyd serve
PonyGateway starting. Listening on http://127.0.0.1:9000
WARNING:tornado.access:404 GET / (127.0.0.1) 2.11ms

The webserver seems to be up, while the PonyGateway lobby is not being served. http://localhost:9000/ only gets me 404: Not Found

luccascorrea commented 8 years ago

+1

leonardowistuba commented 8 years ago

+1

screen shot 2016-04-06 at 4 34 08 pm
spark86 commented 8 years ago

+1

ricardopaiva commented 8 years ago

+1 :( Using El Capitan.

undsoft commented 8 years ago

+1

batiatto commented 8 years ago

+1

also using el Capitan

lakhman commented 8 years ago

+1 also el capitan

moko-ist commented 8 years ago

+1 also using El Capitan

and try to access other endpoint directly like http://127.0.0.1:9000/device, then i got the same error with the following error page

Can "Upgrade" only to "WebSocket".
kenichi commented 8 years ago

i was able to make the service find the correct directory for the web files. i started with changing:

~/Library/PonyDebugger/lib/python2.7/site-packages/ponyd-1.0-py2.7.egg/ponyd/gateway.py

this line:

https://github.com/square/PonyDebugger/blob/master/ponyd/gateway.py#L218

should be static_path = .... then i was able to fire up ponyd with:

$ ponyd serve -v -i 0.0.0.0 -s ~/Library/PonyDebugger/src/ponydebugger/ponyd/web

at this point, both my app with the debugger lib in and chrome were able to connect to the ponyd service. the coredata model browsing feature, which is what i was after with all of this, does not appear to work though 😢 . i can double click the indexeddb, see the model names, but i can't do anything past that.

AmjadAlSawafta commented 8 years ago

+1 also capitan OS

mlostekk commented 8 years ago

same here on osx 10.11.4

reejosamuel commented 8 years ago

same from 10.11.5

ghost commented 8 years ago

@kenichi can you try to add the method below in the file gateway.py in this class https://github.com/square/PonyDebugger/blob/1a9b1a1f328fc79463aac978828044d9aacbbada/ponyd/gateway.py#L90

def check_origin(self, origin):
    return True
luccascorrea commented 8 years ago

For anyone still having this problem, I was able to solve it by copying the contents of the "web" folder (https://github.com/square/PonyDebugger/tree/master/ponyd/web) to /usr/local/lib/python2.7/site-packages/ponyd-1.0-py2.7.egg/ponyd/web.

This problem happens because ponyd can't find the static files. Hope it helps anyone.

dkavraal commented 8 years ago

Thanks for your comments. I have created a workaround. It worked for me on El Capitan and python2.7

mediba-Kitada commented 7 years ago

👍

paramu commented 7 years ago

@luccascorrea ...your solution worked for me ....thanks