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
Describe the bug
Running list_warehouses() with no arguements returns TypeError: _base_api() got an unexpected keyword argument 'reqeust'.
The word "reqeust" is misspelled.
To Reproduce
Steps to reproduce the behavior:
Create a notebook with the input python below.
Notebook is not attached to a lakehouse.
Run code
Exception message suggests a misspelling of keyword arguement.
File /nfs4/pyenv-4ed6306f-e1b4-44ed-ba04-12ab8260aa0f/lib/python3.11/site-packages/sempy_labs/_warehouses.py:95, in list_warehouses(workspace)
91 df = _create_dataframe(columns=columns)
93 (workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace)
---> 95 responses = _base_api(
96 reqeust=f"/v1/workspaces/{workspace_id}/warehouses", uses_pagination=True
97 )
99 for r in responses:
100 for v in r.get("value", []):
TypeError: _base_api() got an unexpected keyword argument 'reqeust'
Expected behavior
Return a list of warehouses in the workspace of the notebook.
The text was updated successfully, but these errors were encountered:
Describe the bug
Running list_warehouses() with no arguements returns TypeError: _base_api() got an unexpected keyword argument 'reqeust'.
The word "reqeust" is misspelled.
To Reproduce
Steps to reproduce the behavior:
Input
Output
TypeError Traceback (most recent call last)
Cell In[7], line 3
1 import sempy_labs
----> 3 display(sempy_labs.list_warehouses())
File /nfs4/pyenv-4ed6306f-e1b4-44ed-ba04-12ab8260aa0f/lib/python3.11/site-packages/sempy_labs/_warehouses.py:95, in list_warehouses(workspace)
91 df = _create_dataframe(columns=columns)
93 (workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace)
---> 95 responses = _base_api(
96 reqeust=f"/v1/workspaces/{workspace_id}/warehouses", uses_pagination=True
97 )
99 for r in responses:
100 for v in r.get("value", []):
TypeError: _base_api() got an unexpected keyword argument 'reqeust'
Expected behavior
Return a list of warehouses in the workspace of the notebook.
The text was updated successfully, but these errors were encountered: