Giter VIP home page Giter VIP logo

Comments (7)

Silent743 avatar Silent743 commented on July 26, 2024 2

I have same problem too.Have anybody idea about fixing it without downgrade Django?

from django-websocket-redis.

Ratak avatar Ratak commented on July 26, 2024 1

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.

bertini36 avatar bertini36 commented on July 26, 2024

Same problem here. Do you find something about it @stefancon ?

from django-websocket-redis.

DaniilSezonov avatar DaniilSezonov commented on July 26, 2024

I think that the problem related with commit (django/django@08f78a4)

from django-websocket-redis.

DaniilSezonov avatar DaniilSezonov commented on July 26, 2024

@stefancon @bertini36 I think that i fixed the problem

from django-websocket-redis.

jrief avatar jrief commented on July 26, 2024

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.

lahuindai avatar lahuindai commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.