Comments (7)
I have same problem too.Have anybody idea about fixing it without downgrade Django?
from django-websocket-redis.
Still get the same error
Other Exception: 'LimitedStream' object has no attribute 'raw'
Traceback (most recent call last):
File "/home/user/.venv/lib/python3.6/site-packages/ws4redis/wsgi_server.py", line 113, in call
websocket = self.upgrade_websocket(environ, start_response)
File "/home/user/.venv/lib/python3.6/site-packages/ws4redis/django_runserver.py", line 97, in upgrade_websocket
return WebSocket(environ['wsgi.input'])
File "/home/user/.venv/lib/python3.6/site-packages/ws4redis/websocket.py", line 29, in init
self.stream = Stream(wsgi_input)
File "/home/user/.venv/lib/python3.6/site-packages/ws4redis/websocket.py", line 296, in init
self.read = wsgi_input.raw._sock.recv
with the next one
AttributeError: 'LimitedStream' object has no attribute 'raw'
Starting late response on websocket
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.6.7/lib/python3.6/wsgiref/handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "/home/user/.venv/lib/python3.6/site-packages/django/contrib/staticfiles/handlers.py", line 65, in call
return self.application(environ, start_response)
File "/home/user/.venv/lib/python3.6/site-packages/ws4redis/django_runserver.py", line 125, in application
return _websocket_app(environ, start_response)
File "/home/user/.venv/lib/python3.6/site-packages/ws4redis/wsgi_server.py", line 177, in call
start_response(force_str(status), headers)
File "/home/user/.pyenv/versions/3.6.7/lib/python3.6/wsgiref/handlers.py", line 223, in start_response
raise AssertionError("Headers already set!")
AssertionError: Headers already set!
It seems I do something wrong but I cannot guess what
from django-websocket-redis.
Same problem here. Do you find something about it @stefancon ?
from django-websocket-redis.
I think that the problem related with commit (django/django@08f78a4)
from django-websocket-redis.
@stefancon @bertini36 I think that i fixed the problem
from django-websocket-redis.
I never tested this library on Django-2 or later, so please be patient until I have some time to do so, or try yourself.
from django-websocket-redis.
2019-08-14 04:39:54,382 django.request ERROR Other Exception: 'LimitedStream' object has no attribute 'raw'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/ws4redis/wsgi_server.py", line 113, in call
websocket = self.upgrade_websocket(environ, start_response)
File "/usr/local/lib/python3.6/dist-packages/ws4redis/django_runserver.py", line 97, in upgrade_websocket
return WebSocket(environ['wsgi.input'])
File "/usr/local/lib/python3.6/dist-packages/ws4redis/websocket.py", line 29, in init
self.stream = Stream(wsgi_input)
File "/usr/local/lib/python3.6/dist-packages/ws4redis/websocket.py", line 296, in init
self.read = wsgi_input.raw._sock.recv
AttributeError: 'LimitedStream' object has no attribute 'raw'
Starting late response on websocket
Followed by
2019-08-14 04:39:54,383 django.request WARNING Starting late response on websocket
Traceback (most recent call last):
File "/usr/lib/python3.6/wsgiref/handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python3.6/dist-packages/django/contrib/staticfiles/handlers.py", line 65, in call
return self.application(environ, start_response)
File "/usr/local/lib/python3.6/dist-packages/ws4redis/django_runserver.py", line 125, in application
return _websocket_app(environ, start_response)
File "/usr/local/lib/python3.6/dist-packages/ws4redis/wsgi_server.py", line 177, in call
start_response(force_str(status), headers)
File "/usr/lib/python3.6/wsgiref/handlers.py", line 223, in start_response
raise AssertionError("Headers already set!")
AssertionError: Headers already set!
With Django 2.2.4 and python 3.6.8 using the new code submitted above. Anybody else getting this ?
from django-websocket-redis.
Related Issues (20)
- How to define {{ WEBSOCKET_URI }} with corresponding slug on front end?
- uWSGI server not working like the docs HOT 3
- 1
- WebSocket Connection refused
- Subscription not created, errors? How to debug?
- Websocket doesn't run after reloading whole site and starting uwsgi
- ws4redis slices messages HOT 1
- DWR doesn't work with overridden groups
- Switching from username to users id HOT 1
- Handle ssl connections HOT 4
- django-websocket-redis with gunicorn
- WebSocket opening handshake timed out in https
- ValueError: filedescriptor out of range in select() HOT 1
- Django Websocket send data HOT 1
- Each websocket connection results into a brand new socket connection to redis hence it implicitly limits the maximum number of websockets that could be established by using this library HOT 2
- Whether clustering is supported or not?
- Compatibility with Django 3.2 and new release of django-websocket-redis
- OSS License compatibility question HOT 1
- No module named 'django.utils.six'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-websocket-redis.