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
When calling client.list_models(), it throws the following error:
Traceback (most recent call last):
File "/Users/bram/Developer/Repositories/python-sdk/bye.py", line 14, in <module>
print(client.list_models())
^^^^^^^^^^^^^^^^^^^^
File "/Users/bram/Developer/Repositories/python-sdk/lightdash/client.py", line 167, in list_models
return self.models.list()
^^^^^^^^^^^^^^^^^^
File "/Users/bram/Developer/Repositories/python-sdk/lightdash/models.py", line 159, in list
self._ensure_loaded()
File "/Users/bram/Developer/Repositories/python-sdk/lightdash/models.py", line 138, in _ensure_loaded
models = self._client._fetch_models()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bram/Developer/Repositories/python-sdk/lightdash/client.py", line 154, in _fetch_models
return [Model.from_api_response(item) for item in response_data]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bram/Developer/Repositories/python-sdk/lightdash/client.py", line 154, in <listcomp>
return [Model.from_api_response(item) for item in response_data]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bram/Developer/Repositories/python-sdk/lightdash/models.py", line 114, in from_api_response
type=data["type"],
~~~~^^^^^^^^
KeyError: 'type'
Reproduction path
Initialise a new client
Call client.list_models()
It throws an error.
The text was updated successfully, but these errors were encountered:
Description
When calling
client.list_models()
, it throws the following error:Reproduction path
client.list_models()
The text was updated successfully, but these errors were encountered: