Replies: 2 comments
-
I will just mention this issue and this PR. looks like it's not Starlette. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@krauss Thanks for the solution. For those of us frozen to this particular version, your solution has helped! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, I've been using Starlette with FastAPI and Strawberry to expose a GraphQL API for my web app. However, since last week I noticed I'm getting the error below when trying to acess http://localhost:8000/graphql:
These are some of the libraries I'm using:
fastapi==0.77.0
starlette==0.20.0
strawberry==0.111.2
graphql-core==3.2.1
uvicorn==0.17.6
uvloop==0.16.0
After debugging the libraries, I noticed that the chunk of code below, taken from file response.py, line 84 is causing the error :
To summarize, the error above happens when
self.status_code is None
. This is how to fix it:Should I open a PR to fix it or is this something that's already on your radar?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions