{"record":{"id":"6c2166204c4e11c9","repo":"pola-rs/polars","slug":"did-not-receive-credentials-from-temporary-credent","errorCode":null,"errorMessage":"did not receive credentials from temporary credentials API for table_id = {table_id}","messagePattern":"did not receive credentials from temporary credentials API for table_id = (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/catalog/unity/client.py","lineNumber":737,"sourceCode":"\n    def __call__(self) -> CredentialProviderFunctionReturn:  # noqa: D102\n        _, (creds, expiry) = self._credentials_iter()\n        return creds, expiry\n\n    def _credentials_iter(self) -> Generator[Any]:\n        creds, storage_update_options, expiry = self.catalog._get_table_credentials(\n            self.table_id, write=self.write\n        )\n\n        yield storage_update_options\n\n        if not creds:\n            table_id = self.table_id\n            msg = (\n                \"did not receive credentials from temporary credentials API for \"\n                f\"{table_id = }\"\n            )\n            raise Exception(msg)  # noqa: TRY002\n\n        yield creds, expiry\n\n\ndef _extract_location_and_data_format(\n    table_info: TableInfo, operation: str\n) -> tuple[str, DataSourceFormat]:\n    if table_info.storage_location is None:\n        msg = f\"cannot {operation}: no storage_location found\"\n        raise ValueError(msg)\n\n    if table_info.data_source_format is None:\n        msg = f\"cannot {operation}: no data_source_format found\"\n        raise ValueError(msg)\n\n    return table_info.storage_location, table_info.data_source_format\n","sourceCodeStart":719,"sourceCodeEnd":754,"githubUrl":"https://github.com/pola-rs/polars/blob/5d8ebabf11caea54a5c29178a64a058762f49766/py-polars/src/polars/catalog/unity/client.py#L719-L754","documentation":"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.","triggerScenarios":"Temporary credentials API returned no credentials for the table.","commonSituations":"See trigger scenarios.","solutions":["Retry the request; check Unity Catalog permissions for the table (the temporary credentials API returned nothing)."],"exampleFix":"# verify GRANTs on the table in Unity Catalog, then retry","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5d8ebabf11caea54a5c29178a64a058762f49766","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}