-
Notifications
You must be signed in to change notification settings - Fork 510
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
Strawberry integration crashes if no query is in request #2715
Labels
Comments
sentrivana
added
Type: Bug
Something isn't working
Integration: Strawberry
and removed
Waiting for: Product Owner
labels
Feb 7, 2024
Thanks for the super nice bug report @jthorniley! Should be easy enough for us to fix -- we need to guard against |
czyber
added a commit
to czyber/sentry-python
that referenced
this issue
Feb 18, 2024
Gracefully handle an empty GraphQL query. Fixes getsentry#2715
czyber
added a commit
to czyber/sentry-python
that referenced
this issue
Feb 18, 2024
Gracefully handle an empty GraphQL query. Fixes getsentry#2715
This was referenced Feb 18, 2024
Merged
antonpirker
added a commit
that referenced
this issue
Apr 4, 2024
Gracefully handle an empty GraphQL query. Fixes #2715 Co-authored-by: Anton Pirker <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.40.2
Steps to Reproduce
Running an app with the StrawberryIntegration crashes if graphql endpoint is called with no
query
field in the input data.app.py
and install the requirements (sentry, strawberry graphql and litestar)litestar run
curl -v -X POST -d "{}" -H "Content-Type: application/json" http://localhost:8000/graphql
app.py:
pip freeze:
Expected Result
Actual Result
On the server console, there is a traceback from inside the strawberry integration:
The text was updated successfully, but these errors were encountered: