pola-rs/polars · error · Exception
did not receive credentials from temporary credentials API…
Error message
did not receive credentials from temporary credentials API for table_id = {table_id} What it means
Raised inside the Unity Catalog credential provider's `_credentials_iter` when the Databricks temporary-credentials API returned an empty credential set for the given table_id, meaning the provider cannot supply working credentials for the storage location.
Solutions
- Retry the request; check Unity Catalog permissions for the table (the temporary credentials API returned nothing).
Example fix
# verify GRANTs on the table in Unity Catalog, then retry
Defensive patterns
Strategy: fallback
When it happens
Trigger: Temporary credentials API returned no credentials for the table.
Common situations: See trigger scenarios.
AI-assisted analysis of pola-rs/polars@5d8ebabf11 (2026-08-19).
Data as JSON: /api/errors/6c2166204c4e11c9.
Report an issue: GitHub.
Appendix: source
Thrown at py-polars/src/polars/catalog/unity/client.py:737
def __call__(self) -> CredentialProviderFunctionReturn: # noqa: D102
_, (creds, expiry) = self._credentials_iter()
return creds, expiry
def _credentials_iter(self) -> Generator[Any]:
creds, storage_update_options, expiry = self.catalog._get_table_credentials(
self.table_id, write=self.write
)
yield storage_update_options
if not creds:
table_id = self.table_id
msg = (
"did not receive credentials from temporary credentials API for "
f"{table_id = }"
)
raise Exception(msg) # noqa: TRY002
yield creds, expiry
def _extract_location_and_data_format(
table_info: TableInfo, operation: str
) -> tuple[str, DataSourceFormat]:
if table_info.storage_location is None:
msg = f"cannot {operation}: no storage_location found"
raise ValueError(msg)
if table_info.data_source_format is None:
msg = f"cannot {operation}: no data_source_format found"
raise ValueError(msg)
return table_info.storage_location, table_info.data_source_format
View on GitHub (pinned to 5d8ebabf11)