Skip to content
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

bug: Sometimes DGS_GRAPHQL_PATH is not set and it breaks the GraphiQL forcing me to redeploy the app #1135

Closed
ghost opened this issue Jul 6, 2022 · 3 comments · Fixed by #1183
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jul 6, 2022

Please read our contributor guide before
creating an issue.

Expected behavior

When I use the GraphiQL it should work

Actual behavior

Sometimes, when I try to use the GraphiQL (Graphical Interface Web of GraphQL) it doesn't work.
When I watch the network tab it says
/graphiql/%3CDGS_GRAPHQL_PATH%3E:1 Failed to load resource: the server responded with a status of 404 ()
Also when I try to perform a query or mutation I get this:
POST https://mysite.com/graphiql/%3CDGS_GRAPHQL_PATH%3E 404

Steps to reproduce

I cannot reproduce 100% of the times, I think it's related with some order of execution or concurrency, because sometimes it happens and sometimes it's not. I'm deploying my application in an Elastic Beanstalk in AWS using CloudFormation for the infrastructure.
In localhost I couldn't reproduce it.
Until I not redeploy the app the problem continue there.

I'm using 5.0.5 version. It always happened with any version. I'm having this problem from time to time from the past year.

Note: A test case would be highly appreciated, but we understand that's not always possible

@ghost ghost added the bug Something isn't working label Jul 6, 2022
@gabrielkirsten
Copy link

I'm facing the same issue here, but the problem disappears after a while even without redeploying. I'm using 4.10.2 version.

@ClaudenirFreitas
Copy link
Contributor

hi all,
I've just created this MR to fix this issue.
I also created this repo to reproduce the incident.

Cheers.

@foo4u
Copy link
Contributor

foo4u commented Aug 16, 2022

I created #1183 to fix the intermittent DGS_GRAPHQL_PATH issue. One workaround for now is to disable Spring's static resource handling:

spring:
  web:
    resources:
      add-mappings: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants