question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't connect to a websocket (poetry only)

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

Application is a simple chat using django-channels and celery (just tried to substitude Pipenv with poetry for my old app). While managing my deps using Pipenv, everything is OK and i have no issues at all. But while using poetry with exactly same deps list, server can’t find websocket via its route and get this error.

[06/Oct/2019 22:13:46] "GET /chat1/ HTTP/1.1" 200 8842
Not Found: /ws/chat/chat1/
[06/Oct/2019 22:13:47] "GET /ws/chat/chat1/ HTTP/1.1" 404 2607

Pipenv output:

HTTP GET /chat1/ 200 [0.07, 127.0.0.1:51086]
WebSocket HANDSHAKING /ws/chat/chat1/ [127.0.0.1:51090]
WebSocket CONNECT /ws/chat/chat1/ [127.0.0.1:51090]

Here is this app: https://github.com/fly1ngDream/channels-chat (After commit that start using poetry for deps management, sockets became broken). I had tried to use beta version of poetry, but it didn’t help

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
yshymcommented, Oct 7, 2019

The issue was: i installed the django-channels dependency which has nothing in common with the channels one

1reaction
yshymcommented, Oct 7, 2019

Recreated pipenv virtualenv and got same issue. Obviously, poetry is not the source of this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't connect to a websocket (poetry only) #1443 - GitHub
Application is a simple chat using django-channels and celery (just tried to substitude Pipenv with poetry for my old app). While managing my ......
Read more >
Can't connect to websocket server (spring) - Stack Overflow
I suppose you send client requests from different port, that means your client is on different origin, for that you must add some...
Read more >
websocket - npm
Overview. This is a (mostly) pure JavaScript implementation of the WebSocket protocol versions 8 and 13 for Node. There are some example client ......
Read more >
Web app can't connect to websocket server
This app is connected to a websocket server on port 9001. Both WS and HTTP servers are located inside the same VM. When...
Read more >
Deployment - Uvicorn
A process manager will handle the socket setup, start-up multiple server processes, monitor process aliveness, and listen for signals to provide for processes ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found