This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
starlette >v0.18 requires status_code on Response init #4800
Comments
Yes, this is one of the reasons FastAPI's current code base uses Starlette 17. This fix is applied for the update merge request. |
Greetings Can I suggest that you state on the the home page that you use Starlette 17 and that users must be carefull when doing an upgrade to their python packages I upgraged my environment, then everything broke till I reinstalled fastapi[all] and I noticed that Starlette is being downgraded to 17 |
The projects dependencies are listed in the pyproject.toml. Are you not using a vituralenv ? or perhaps listing Starlette along with FastAPI as a dependency? |
Greetings
I used pip to install FastAPI, (with all optional dependencies) then later
I did an update to all packages. That is when I noticed that my
application was failing. I then did a reinstall of FastAPI and that is
when I noticed the downgrade. I checked the home page but did not see the
requirement, it was only when I searched git that I saw the post and the
reply with the requirement
That is why I made the suggestion that it be listed on the homepage
Hope this helps
Regards
…On Fri, 22 Apr 2022, 15:56 Jordan Gould, ***@***.***> wrote:
The projects dependencies are listed in the pyproject.toml.
Are you not using a vituralenv ? or perhaps listing Starlette along with
FastAPI as a dependency?
—
Reply to this email directly, view it on GitHub
<#4800 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHYI5DM27RPDW4DL7POQMW3VGKVYFANCNFSM5TRCURZQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
This message and attachments are subject to a disclaimer.
Please refer to
http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf
<http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf> for
full
details.
|
@syldman can you close the issue -> https://github.com/tiangolo/fastapi/releases/tag/0.76.0 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Example Code
the above fails as https://github.com/encode/starlette/blob/master/starlette/responses.py requires status_code to be INT
FastAPI Version
0.75.1
The text was updated successfully, but these errors were encountered: