GithubHelp home page GithubHelp logo

Comments (6)

andrewgodwin avatar andrewgodwin commented on July 24, 2024 1

Oh, yes! I've fixed that in fe35254.

The "multiple response messages" problem turned out to be an issue with the database backend duplicating messages, the new version now uses transactions to stop that - so I'm closing this, since I think these are both fixed. Reopen if it's not.

from channels.

andrewgodwin avatar andrewgodwin commented on July 24, 2024

What version of Django, channels, Daphne, asgiref are you using, and what's your channel layer setting look like?

from channels.

rajasimon avatar rajasimon commented on July 24, 2024

Pip freeze

Django==1.9.2
Twisted==15.5.0
argparse==1.2.1
asgiref==0.9
autobahn==0.12.1
channels==0.9.1
daphne==0.9
psycopg2==2.6.1
pytz==2015.7
six==1.10.0
txaio==2.2.1
wsgiref==0.1.2
zope.interface==4.1.3

And my channel layer settings look like this ...

# In settings.py
CHANNEL_LAYERS = {
    "default": {
        "BACKEND": "channels.database_layer.DatabaseChannelLayer",
        "ROUTING": "buildsys.routing.channel_routing",
    },
}

from channels.

rajasimon avatar rajasimon commented on July 24, 2024

I don't know why but looks like " Got multiple Response messages " not coming right now when running runserver ...

And changing asgi.py line_numer : 83 django.setup(set_prefix=False) this to django.setup() will work..and I got connected message in my chrome console. But in my terminal I got this

IntegrityError: null value in column "expiry" violates not-null constraint
DETAIL:  Failing row contains (1243, chat, !websocket.send.kfVqXOSu, null).

from channels.

andrewgodwin avatar andrewgodwin commented on July 24, 2024

You shouldn't need django.setup in ASGI.py - where in the docs did I put that? I should fix it.

And for the database, delete your channels tables; the schema changed a bit since the earlier version, and I didn't do migrations since the user base was very low then.

from channels.

rajasimon avatar rajasimon commented on July 24, 2024

No actually I was saying that In the fresh installation without editing that 83 line it throws error by default.

from channels.

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.