Hi, I'm trying to run dagit on k8s behind an nginx...
# announcements
Hi, I'm trying to run dagit on k8s behind an nginx router but I get this error in dagit (0.8.8) on every request:
Copy code
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 970, in handle_one_response
  File "/usr/local/lib/python3.7/site-packages/geventwebsocket/handler.py", line 82, in run_application
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 904, in process_result
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 751, in write
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 772, in _write_with_headers
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 734, in _write
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 708, in _sendall
  File "/usr/local/lib/python3.7/site-packages/gevent/_socket3.py", line 533, in sendall
    data_memory = _get_memory(data)
  File "src/gevent/_greenlet_primitives.py", line 98, in gevent._gevent_c_greenlet_primitives.get_memory
  File "src/gevent/_greenlet_primitives.py", line 121, in gevent._gevent_c_greenlet_primitives.get_memory
  File "src/gevent/_greenlet_primitives.py", line 109, in gevent._gevent_c_greenlet_primitives.get_memory
TypeError: memoryview: a bytes-like object is required, not 'str'
I think it might have something to do with the websockets and the router but I'm not sure... On the browser console I can see
failed: Error during WebSocket handshake: Unexpected response code: 402
, also in the proxy logs I can see
upstream prematurely closed connection while reading upstream
✔️ 1
It was an issue with the proxy config, it needs HTTP 1.1 otherwise it won't work