-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Serve] proxy failed to start as starlette
removed options
attribute from starlette.middleware.Middleware
#42370
Comments
I just ran into the same error, which burned me an hour. Thanks so much for sharing it! I resolved the issue by installing Starelette first. Below is my
|
Thanks much for sharing, saved a ton of time. |
Unfortunately starlette 0.34.0 is incompatible with the latest fastapi.
I'm not sure if this affects Ray's functionality. I am able to successfully run the sample client/server application from Running a Ray Serve Application in this configuration. |
You can degrade your fastapi to a low version such as |
@sihanwang41 is this issue closed now? |
Can ray plan a upgrade. This issue troubles anyone using newer version of FastAPI. |
What happened + What you expected to happen
Proxy failed to start with error
Starelette has removed this attribute after version
0.34.0
https://github.com/encode/starlette/pull/2381/files#diff-861f6098c0edc67d2e328a0c76c86acf1cd1f4d86fc398a6838d18d69c2bdeaeL7
pip install "starlette<=0.34.0"
has fixed it for me.requirements
file may be updated accordingly https://github.com/ray-project/ray/blob/master/python/requirements.txt#L56Versions / Dependencies
Ray version 2.9.0
Reproduction script
Run any serve app
Issue Severity
None
The text was updated successfully, but these errors were encountered: