-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Description
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.
Metadata
Metadata
Assignees
Labels
No labels