-
Notifications
You must be signed in to change notification settings - Fork 825
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
Visiting /admin/graphql/types triggers an error #9978
Comments
@unclecheese Got any views on this? |
It shouldn't be locked down. You can configure this to be statically generated, and in v4, it's only statically generated, so to hide this behind auth doesn't seem appropriate. I'd be much more keen to learn what the error is and just resolve that. |
GraphQL v3 error
GraphQL v4 seems to 404 as expected |
@kinglozzer how to use graphql v4 ? anyway, I think it deserves a fix as basically all ss4 installations have this issue. In my case i think it's bots visiting that url and i can easily imagine how bad it can become if someone decide to send lots of requests to an url that triggers errors. |
@lekoala is this what you're looking for? https://docs.silverstripe.org/en/4/changelogs/4.8.0/#start-using-silverstripe-graphql-v4-today |
@lerni thanks ! not sure it's recommended yet since its in alpha stage if I read correctly ? |
@lekoala may you join #graphql on #slack? |
@lerni i'll give the new module a try on a less critical project ;-) i'm not a regular user of slack so i might drop by on the channel but probably not the best way to have a good follow up on this |
For context : silverstripe/silverstripe-framework#9978 Here, my proposal is to return a consistent json response
ahah so i got tired of these errors pilling up in my logs and made a PR |
Affected Version
V4
Description
Visiting /admin/graphql/types triggers an error if not logged in.
This happens from time to time in my logs and is reported as an error when in reality, the request should simply be denied and avoid logging errors.
Suggested fix: return a http response or catching the exception in order to return a http response
Steps to Reproduce
Visit https://www.silverstripe.com/admin/graphql/types and see a server error
The text was updated successfully, but these errors were encountered: