guac
guac copied to clipboard
Fixed Issue: #2195 500 error when sending empty JSON payload to Graph...
Fixed Issue: #2195 500 error when sending empty JSON payload to Graph…
Description of the PR
This pull request addresses an issue where the GraphQL server returned a 500 internal server error when an empty or invalid JSON payload was sent to the /query endpoint.
Changes:
- Error handling: Updated the server to return a 400 bad request instead of 500 for invalid JSON input.
- Error message: Improved the error message to provide more context about the issue.
PR Checklist
- [x] All commits have a Developer Certificate of Origin (DCO) -- they are generated using
-sflag togit commit. - [x] All new changes are covered by tests
- [ ] If GraphQL schema is changed,
make generatehas been run - [ ] If GraphQL schema is changed, GraphQL client updates/additions have been made
- [ ] If OpenAPI spec is changed,
make generatehas been run - [ ] If ent schema is changed,
make generatehas been run - [ ] If
collectsubprotobuf has been changed,make protohas been run - [x] All CI checks are passing (tests and formatting)
- [x] All dependent PRs have already been merged
Can you remove the changes to the files that are not relevant to this PR? Looks like you had an incomplete merge conflict resolution?
This pull request has been automatically marked as stale because it has not had recent activity (60 days of inactivity). It will be closed in 30 days if no further activity occurs. Thank you for your contribution!
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen it (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!