You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/retries.py:54, in retried..decorator..wrapper(*args, **kwargs)
50 retry_reason = f'{type(err).name} is allowed to retry'
52 if retry_reason is None:
53 # raise if exception is not retryable
---> 54 raise err
56 logger.debug(f'Retrying: {retry_reason} (sleeping ~{sleep}s)')
57 clock.sleep(sleep + random())
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/retries.py:33, in retried..decorator..wrapper(*args, **kwargs)
31 while clock.time() < deadline:
32 try:
---> 33 return func(*args, **kwargs)
34 except Exception as err:
35 last_err = err
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/_base_client.py:237, in _BaseClient._perform(self, method, url, query, headers, body, raw, files, data, auth)
235 error = self._error_parser.get_api_error(response)
236 if error is not None:
--> 237 raise error from None
238 return response
NotFound: Could not handle RPC class com.databricks.api.proto.buiapiserver.ItemizedUsage.
The text was updated successfully, but these errors were encountered:
Executing
resp = a.billable_usage.download(start_month="2024-10", end_month="2024-11")
results in
NotFound: Could not handle RPC class com.databricks.api.proto.buiapiserver.ItemizedUsage.
Client is valid and is able to get data from a.workspaces.list() and a.metastores.list()
NotFound Traceback (most recent call last)
File , line 1
----> 1 resp = a.billable_usage.download(start_month="2024-10", end_month="2024-11")
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/service/billing.py:1063, in BillableUsageAPI.download(self, start_month, end_month, personal_data)
1060 if start_month is not None: query['start_month'] = start_month
1061 headers = {'Accept': 'text/plain', }
-> 1063 res = self._api.do('GET',
1064 f'/api/2.0/accounts/{self._api.account_id}/usage/download',
1065 query=query,
1066 headers=headers,
1067 raw=True)
1068 return DownloadResponse.from_dict(res)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/core.py:77, in ApiClient.do(self, method, path, url, query, headers, body, raw, files, data, auth, response_headers)
75 path = re.sub('^/api/2.0/fs/files//', '/api/2.0/fs/files/', path)
76 url = f"{self._cfg.host}{path}"
---> 77 return self._api_client.do(method=method,
78 url=url,
79 query=query,
80 headers=headers,
81 body=body,
82 raw=raw,
83 files=files,
84 data=data,
85 auth=auth,
86 response_headers=response_headers)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/_base_client.py:147, in _BaseClient.do(self, method, url, query, headers, body, raw, files, data, auth, response_headers)
143 headers['User-Agent'] = self._user_agent_base
144 retryable = retried(timeout=timedelta(seconds=self._retry_timeout_seconds),
145 is_retryable=self._is_retryable,
146 clock=self._clock)
--> 147 response = retryable(self._perform)(method,
148 url,
149 query=query,
150 headers=headers,
151 body=body,
152 raw=raw,
153 files=files,
154 data=data,
155 auth=auth)
157 resp = dict()
158 for header in response_headers if response_headers else []:
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/retries.py:54, in retried..decorator..wrapper(*args, **kwargs)
50 retry_reason = f'{type(err).name} is allowed to retry'
52 if retry_reason is None:
53 # raise if exception is not retryable
---> 54 raise err
56 logger.debug(f'Retrying: {retry_reason} (sleeping ~{sleep}s)')
57 clock.sleep(sleep + random())
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/retries.py:33, in retried..decorator..wrapper(*args, **kwargs)
31 while clock.time() < deadline:
32 try:
---> 33 return func(*args, **kwargs)
34 except Exception as err:
35 last_err = err
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b4b67019-5591-40c7-b878-f1230830fb9a/lib/python3.10/site-packages/databricks/sdk/_base_client.py:237, in _BaseClient._perform(self, method, url, query, headers, body, raw, files, data, auth)
235 error = self._error_parser.get_api_error(response)
236 if error is not None:
--> 237 raise error from None
238 return response
NotFound: Could not handle RPC class com.databricks.api.proto.buiapiserver.ItemizedUsage.
The text was updated successfully, but these errors were encountered: