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

this does not work 404 error #5

Closed
josh123a123 opened this issue Aug 1, 2019 · 9 comments
Closed

this does not work 404 error #5

josh123a123 opened this issue Aug 1, 2019 · 9 comments

Comments

@josh123a123
Copy link

just cloning this and running it results in
{
"timestamp": "2019-08-01T17:35:11.276+0000",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/graphql"
}

@Marx2
Copy link

Marx2 commented Apr 8, 2020

I can confirm, that with new graphql-java libraries this configuration doesn't work anymore - /graphql endpoint is not accessible

@dezzak
Copy link

dezzak commented May 1, 2020

In my case, I hadn't included the dependency graphql-java-spring-boot-starter-webmvc. It worked for me after I included it (using mvn) in my case:

<dependency>
        <groupId>com.graphql-java</groupId>
        <artifactId>graphql-java-spring-boot-starter-webmvc</artifactId>
        <version>2019-06-24T11-47-27-31ab4f9</version>
</dependency>

@gavin-haynes-grow
Copy link

It should work if you specify query params e.g.

http://localhost:8080/graphql?query=%7BbookById(id%3A%20%22book-1%22)%20%7B%20id%20%7D%7D

query is encodeURIComponent("{bookById(id: \"book-1\") { id }}")

@davindersingh0
Copy link

It did not work 404 error

@lihao5257
Copy link

@dezzak
That solution also worked for me . Thank you !

@wanghe9011
Copy link

@gavin-haynes-grow Well Done. Thank you !

@lsarkisov
Copy link

This works for me:

Снимок экрана 2021-04-17 в 4 59 19 PM

@KaiJiaBrother
Copy link

It should work if you specify query params e.g.

http://localhost:8080/graphql?query=%7BbookById(id%3A%20%22book-1%22)%20%7B%20id%20%7D%7D

query is encodeURIComponent("{bookById(id: \"book-1\") { id }}")

I agree, parameter 'query' is required.

@dondonz
Copy link
Member

dondonz commented Sep 29, 2023

Closing this old issue as since then the tutorial has been rewritten to use Spring for GraphQL

@dondonz dondonz closed this as completed Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants