Hi guys! I've deployed my datahub instances throug...
# troubleshoot
r
Hi guys! I've deployed my datahub instances through docker container within GCP-Compute Engine. the front-end works well, but when I sent a post (with proper payload) to the GraphQL endpoint in
<http://localhost:8080/api/graphql>
, it gives me
Copy code
"exceptionClass":"com.linkedin.restli.server.RestLiServiceException","stackTrace":"com.linkedin.restli.server.RestLiServiceException [HTTP Status:404]: No root resource defined for path '/api'\n\tat
can anyone helps me with this error ?, thanks
e
Can you try
<http://localhos:8080/api/graphql>
?
r
yep, i treid
localhost:8080
, sorry for the typo
m
@ripe-sunset-20897: can you try
/api/graphiql
? Note it is
graphiql
not
graphql
there is an
i
snuck in there 🙂
r
I tried that, and still got the same error @mammoth-bear-12532 , here's the pic
m
I think it should be a get. Can you just go to that url in your browser @ripe-sunset-20897 ?
r
got 404 from my chrome
m
@ripe-sunset-20897 which version of the docker image are you using?
r
I believe it's v0.8.6 , anyway my colleagues have found the workaround to get the list through the
<http://localhost:8080/entities?action=browse>
api endpoint, any idea what's actually happening in the backend why the graphql not working @mammoth-bear-12532 ?
m
I think you might be on an older version @ripe-sunset-20897, I would recommend moving to a newer version.
Based on the release notes here (https://datahubproject.io/docs/releases#v0-8-12) it seems like 0.8.12 was the version that introduced the /api/graphiql endpoint
e
@ripe-sunset-20897 since you are on an older version, you should be able to use /api/graphql endpoints in the frontend
in v0.8.12 we moved graphql resolvers to gms which adds the graphql endpoints to gms, and graphql queries sent to frontend are proxied to gms
r
Thanks for the advices @mammoth-bear-12532 and @early-lamp-41924 , really helpful 😄