https://datahubproject.io logo
Title
a

ancient-queen-15575

05/25/2023, 10:50 AM
I’m having an issue connecting to datahub from my terminal and wondering if anyone can help 🙏 . I successfully run a curl request like below:
curl --location --request POST '<https://dev.mydomain.org/api/graphql>' \
--header 'Authorization: Bearer <datahub token>' \
--header 'Content-Type: application/json' \
--data-raw '{ "query": "{ dataset(urn: \"urn:li:dataset:(urn:li:dataPlatform:s3,land-dev.insurance/calculations,DEV)\") { domain { associatedUrn domain { urn properties { name } } } } }", "variables":{}}'
But I can connect when trying to run a recipe. My enviorment variable for the token is called
DATAHUB_GMS_TOKEN
and has the same value as is used in the curl request. For
DATAHUB_GMS_URL
the value is
<https://dev.mydomain.org:8080>
. I’m not understanding why a query to graphql would work but connecting to the GMS port wouldn’t
g

gray-shoe-75895

05/25/2023, 11:36 PM
What error are you seeing? My bet would be that you’re connecting to the frontend container instead of GMS. The GMS server is usually on port 8080, while folks usually expose the frontend (port 9002) publicly