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

SocketIOClient.run() causes "Invalid frame" #2

Open
alp82 opened this issue Jun 6, 2012 · 0 comments
Open

SocketIOClient.run() causes "Invalid frame" #2

alp82 opened this issue Jun 6, 2012 · 0 comments

Comments

@alp82
Copy link

alp82 commented Jun 6, 2012

I try to run the following code:

s = SocketIOClient('localhost', 9000)
s.run()

I get the error "Invalid frame".

The socket.io server is running (gevent-socketio).

Stacktrace:

Environment:
Request Method: GET
Request URL: http://test.local:8000/test

Django Version: 1.4
Python Version: 2.6.6
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'test')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 )

Traceback:
File "/home/test/env/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/test/project/forms.py" in validateForm
  32.     s.run()
File "/home/test/project/socketio_client.py" in run
  143.         super(SocketIOClient, self).run()
    File "/home/test/project/websocket_client.py" in run
  108.             buf = self._consume_frames(buf)
File "/home/test/project/websocket_client.py" in _consume_frames
  97.             if frame[0] != FRAME_START: raise WebSocketError("Invalid frame")

Exception Type: WebSocketError at /test
Exception Value: Invalid frame
amitu pushed a commit that referenced this issue Aug 8, 2012
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

1 participant