Hello, Is it possible that DataHub uses two versio...
# troubleshoot
b
Hello, Is it possible that DataHub uses two versions of entities in API calls? When I run commands via CURL it works properly:
Copy code
curl -X 'GET' '<https://DATAHUB_URL/openapi/entities/v1/latest?urns=MY_URN>' -H 'accept: application/json' --header 'Authorization: Bearer MY_TOKEN | jq
but when I’m trying to access the same data with:
Copy code
datahub --debug get --urn "urn:li:dataset:(MY_URN)" --aspect ownership
it throws 404:
404 Client Error: Not Found for url: <https://DATAHUB_URL/openapi/entitiesV2/MY_URN?aspects=List(ownership)>
SwaggerUI shows only
/entities/v1
and my suspicion is that it tries to reach
/entities/v2
via CLI - is there any flag to set it?
✅ 1
Looks like I’ve found it: • I’ve set endpoint to
DATAHUB_URL:8080
instead of
DATAHUB_URL/openapi
• ALB needs to be reconfigured to forward API calls properly