Area: Ingestion
Sub-Area: Hex Source
Applies to: OSS + Cloud
Issue
Ingestion from Hex fails or is incomplete, and the Hex API returns HTTP 429 (Too Many Requests) rate limit errors.
If listing Hex projects still fails after the connector's retries, the run report shows a failure titled "Listing Projects and Components API request error" with the message "Error fetching Projects and Components and halting metadata ingestion". Project listing stops.
You Might Be Asking
- Can I change the Hex rate limit in my recipe?
- Why does my Hex recipe fail validation before ingestion starts?
- How do I get the Hex connector's built-in rate limit handling?
Cause
Hex limits API use to 60 requests per minute. A connector that sends calls faster than that gets HTTP 429 responses.
Solution
Upgrade to the latest release (CLI 1.7.0.20 or later). On DataHub Cloud, set the CLI version in the source's Advanced Settings (see UI ingestion). In CLI 1.7.0.20 the Hex connector handles rate limits for you:
- It retries HTTP 429 responses automatically with exponential backoff (up to 5 retries, backoff factor 2). After the last retry it raises an error.
- It throttles itself to at most 57 calls per 60 seconds, to stay under Hex's limit of 60 requests per minute.
You can't configure either setting. There is no requests_per_minute option, and the recipe fails if you add an unknown key.
A valid recipe needs workspace_name and token. Both are required and have no default. A recipe with only token fails validation.
source:
type: hex
config:
workspace_name: "<your Hex workspace name>"
token: "${HEX_API_TOKEN}"
The token is a Hex Workspace Token with the "Read projects" scope. base_url defaults to https://app.hex.tech/api/v1 for most users. See the Hex source prerequisites for how to find your workspace name and create the token.
These limits apply only to the Hex connector. Other connectors don't share them.