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 i call list_datasource return the follow errors:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\software\PyCharm 2023.3.5\plugins\python\helpers-pro\pydevd_asyncio\pydevd_nest_asyncio.py", line 120, in run
return loop.run_until_complete(task)
File "D:\software\PyCharm 2023.3.5\plugins\python\helpers-pro\pydevd_asyncio\pydevd_nest_asyncio.py", line 211, in run_until_complete
return f.result()
File "C:\Users\jack\AppData\Local\Programs\Python\Python310\lib\asyncio\futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
File "C:\Users\jack\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 232, in __step
result = coro.send(None)
File "C:\Users\jack\PycharmProjects\dbgpt-test\api\datasource.py", line 12, in list_ds
res = await list_datasource(client=client)
File "C:\Users\jack\PycharmProjects\dbgpt-test\.venv\lib\site-packages\dbgpt\client\datasource.py", line 120, in list_datasource
raise ClientException(f"Failed to list datasource: {e}")
dbgpt.client.client.ClientException: (Failed to list datasource: (E0003)
Reason: {'success': False, 'err_code': 'E0003', 'err_msg': "1 validation errors:\n {'type': 'model_attributes_type', 'loc': ('response', 'data'), 'msg': 'Input should be a valid dictionary or object to extract fields from', 'input': [DatasourceServeResponse(id=1, db_type='mysql', db_name='dbgpt_test', db_path='', db_host='10.0.67.230', db_port=3306, db_user='zhangwei', db_pwd='zhangwei', comment='')]}\n", 'data': None}
)
Reason: None
What you expected to happen
API endpoint returns incorrect data type
How to reproduce
async def list_ds():
res = await list_datasource(client=client)
print(res)
Additional context
No response
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Search before asking
Operating system information
Linux
Python version information
DB-GPT version
main
Related scenes
Installation Information
Installation From Source
Docker Installation
Docker Compose Installation
Cluster Installation
AutoDL Image
Other
Device information
CPU
Models information
LLM: zhipu_proxyllm
What happened
When i call
list_datasource
return the follow errors:What you expected to happen
API endpoint returns incorrect data type
How to reproduce
Additional context
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: