Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get a AttributeError in SocketIOHandler,when I use the tool:ngrok and use IE11. Chrome is OK. #91

Closed
zhangwen9229 opened this issue Jan 28, 2015 · 2 comments

Comments

@zhangwen9229
Copy link

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\gevent\greenlet.py", line 327, in run
result = self._run(_self.args, *self.kwargs)
File "D:\tlvflask0.1\env\lib\site-packages\socketio\transports.py", line 312, in chunk
self.write_packed(payload)
File "D:\tlvflask0.1\env\lib\site-packages\socketio\transports.py", line 283, in write_packed
self.write("<script>
('%s');</script>" % data)
File "D:\tlvflask0.1\env\lib\site-packages\socketio\transports.py", line 287, in write
super(HTMLFileTransport, self).write("%d\r\n%s%s\r\n" % (l, data, " " * (l - len(data))))
File "D:\tlvflask0.1\env\lib\site-packages\socketio\transports.py", line 41, in write
self.handler.write_smart(data)
File "D:\tlvflask0.1\env\lib\site-packages\socketio\handler.py", line 83, in write_smart
args = urlparse.parse_qs(self.environ.get("QUERY_STRING"))
AttributeError: 'SocketIOHandler' object has no attribute 'environ'
<Greenlet at 0x4886638L: chunk> failed with AttributeError

Please help me to resolve it

@miguelgrinberg
Copy link
Owner

Does everything work when you run the server normally i.e. without ngrok) and use IE11?

@zhangwen9229
Copy link
Author

Yes. without ngrok. IE11 is normal。 Thank you for your reply。
But why, I also don't know about ngrok used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants