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.

Cherrypy version 11.1.0 and above does not work with latest ws4py for websockets

See original GitHub issue
  • I’m submitting a … [ x] bug report [ ] feature request [ ] question about the decisions made in the repository

I’m upgrading for version 8.1.0 to the latest version but I can’t get the websockets working. Up until version 11.0.0 the websockets are working perfectly in combination with ws4py 0.4.2. Once I install 11.1.0 or above, the websocket fails with the following error: image

  • Please tell us about your environment:
  • Cheroot version: 6.0
  • CherryPy version: 11.1.0
  • Python version: 2.7.9
  • OS: windows 8
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, e.g. stackoverflow, gitter, etc.)

There is also a stacktrace in the console:

2017-12-19 08:49:38,549 ERROR [19/Dec/2017:08:49:38] ENGINE AttributeError("'NoneType' object has no attribute 'recv'",)
Traceback (most recent call last):
  File "C:\Tools\GitHub\Auto-Subliminal\lib\cheroot\server.py", line 1142, in communicate
    req.parse_request()
  File "C:\Tools\GitHub\Auto-Subliminal\lib\cheroot\server.py", line 640, in parse_request
    success = self.read_request_line()
  File "C:\Tools\GitHub\Auto-Subliminal\lib\cheroot\server.py", line 678, in read_request_line
    request_line = self.rfile.readline()
  File "C:\Tools\GitHub\Auto-Subliminal\lib\cheroot\server.py", line 234, in readline
    data = self.rfile.readline(256)
  File "C:\Tools\GitHub\Auto-Subliminal\lib\cheroot\makefile.py", line 232, in readline
    data = self.recv(self._rbufsize)
  File "C:\Tools\GitHub\Auto-Subliminal\lib\cheroot\makefile.py", line 82, in recv
    data = self._sock.recv(size)
AttributeError: 'NoneType' object has no attribute 'recv'

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Lawouachcommented, Dec 19, 2017

Merged in and released.

1reaction
h3llrais3rcommented, Dec 19, 2017

With the update of ws4py 0.4.3, the latest cherrypy version is working again for websockets. @webknjaz @Lawouach Thanks for the quick handling. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Broken when using cherrypy>=11.1.0 · Issue #15 · bbc/pydvbcss
CII or TS servers are currently broken when using cherrypy>=11.1.0 This appears to be an upstream problem.
Read more >
server Package — ws4py 0.5.1 documentation - Read the Docs
Basically, when the WebSocket handshake is complete, we take over the socket and let CherryPy take back the thread that was associated with...
Read more >
CherryPy Documentation - Read the Docs
CherryPy is among the oldest web framework available for Python, yet many people aren't aware of its existence. One.
Read more >
CherryPy and websockets - Google Groups
Note that only the official protocol is supported not older broken version, which means that some browser won't work with ws4py. See: http://caniuse.com/ ......
Read more >
How to use the ws4py.server.cherrypyserver.WebSocketTool ...
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. Enable here. github Lawouach /...
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