Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Univorn version does not work with websocket #134

Open
holtgrewe opened this issue Jan 29, 2022 · 0 comments
Open

Univorn version does not work with websocket #134

holtgrewe opened this issue Jan 29, 2022 · 0 comments

Comments

@holtgrewe
Copy link
Member

Describe the bug
Univorn crashes when websocket ist used (websocket returns 502).

Logs

Fatal error: protocol.data_received() call failed.
protocol: <uvicorn.protocols.http.h11_impl.H11Protocol object at 0x7f64b99aebe0>
transport: <_SelectorSocketTransport fd=20 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 862, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 131, in data_received
    self.handle_events()
  File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 180, in handle_events
    self.handle_upgrade(event)
  File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 272, in handle_upgrade
    protocol = self.ws_protocol_class(
  File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 66, in __init__
    super().__init__(
  File "/usr/local/lib/python3.8/site-packages/websockets/server.py", line 85, in __init__
    super().__init__(**kwds)
TypeError: __init__() got an unexpected keyword argument 'logger'

To Reproduce
Start container that uses websocket (e.g., shiny).

Expected behavior
Should work.

Screenshots
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant