https://dagster.io/ logo
Title
d

Dan Zhao

07/01/2021, 9:31 PM
Hi, Dagster newbie here. I am trying to follow the tutorial but I ran into this issue when spinning up Dagit UI:
werkzeug.routing.WebsocketMismatch: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
Does anyone has a clue why this might happen?
d

daniel

07/01/2021, 9:35 PM
Hi Dan - did you install dagster/dagit via pip? If so I'd be curious what version of Flask you have installed. You can check via
pip freeze | grep Flask
d

Dan Zhao

07/01/2021, 9:41 PM
I installed via Poetry (which is essentially pip).
and the package version is: flask 2.0.1 A simple framework for building complex web applications. flask-cors 3.0.10 A Flask extension adding a decorator for CORS support flask-graphql 2.0.1 Adds GraphQL support to your Flask application flask-sockets 0.2.1 Elegant WebSockets for your Flask apps.
d

daniel

07/01/2021, 9:47 PM
Got it, thanks - I'm not deeply familiar with poetry, but dagit should be pinned to 'flask<2.0.0' if you're using a recent version of dagster - I think the error you're seeing is due to that incompatibility. Did you get any warnings or errors when you were installing?
d

Dan Zhao

07/01/2021, 9:51 PM
Ah understood - thanks Daniel! I'll try downgrading flask. No I didn't see any warnings when installing.
d

daniel

07/01/2021, 9:53 PM
Hm, I'm not sure why that would be - the pin is here: https://github.com/dagster-io/dagster/blob/master/python_modules/dagit/setup.py#L54 The two relevant pins there are Flask<2.0.0 and Werkzeug<2.0.0
d

Dan Zhao

07/01/2021, 9:58 PM
Just tried with downgrading flask - works like a charm! Thanks again! I guess I could have conflicting version requirements and I somehow misused poetry.
:condagster: 1