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
Click on the Editor button on the screen, then enter the edited SQL Select statement in the SQL editing area. When the Store Run button is pressed, the following error appears on the screen.
"Application error: a client-side exception has occurred (see the browser console for more information)."
However, using chat to ask about the Select SQL of the database can return the results of queries from the database normally.
Exception Group Traceback (most recent call last):
| File "/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
| yield
| File "/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/starlette/middleware/base.py", line 190, in call
| async with anyio.create_task_group() as task_group:
| File "/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 680, in aexit
| raise BaseExceptionGroup(
| exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
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
latest release
Related scenes
Installation Information
Installation From Source
Docker Installation
Docker Compose Installation
Cluster Installation
AutoDL Image
Other
Device information
Device:CPU
Models information
proxy modles
What happened
DB:PostgreSQL V16.1
Click on the Editor button on the screen, then enter the edited SQL Select statement in the SQL editing area. When the Store Run button is pressed, the following error appears on the screen.
"Application error: a client-side exception has occurred (see the browser console for more information)."
However, using chat to ask about the Select SQL of the database can return the results of queries from the database normally.
Browser Network Result:
Request URL:http://xxx.xxx.xxx.xxx:5670/api/v1/editor/sql/run
Request Method: POST
Status Code:400 Bad Request
Browser Console Result:
POST http://xxx.xxx.xxx.xxx:5670/api/v1/editor/sql/run 400 (Bad Request)
TypeError: Cannot read properties of undefined (reading 'length')
stack:
AxiosError: Request failed with status code 400\n at http://xxx.xxx.xxx.xxx:5670/_next/static/chunks/pages/_app-7876cf4a861cac03.js:176:36436\n at XMLHttpRequest.c (http://xxx.xxx.xxx.xxx:5670/_next/static/chunks/pages/_app-7876cf4a861cac03.js:176:36576)"
What you expected to happen
Output query results normally.
How to reproduce
Additional context
When the service is running, the console outputs log information.
2024-06-26 09:41:25 local.host dbgpt.serve.core.schemas[2217553] ERROR common_exception_handler catch Exception: success=False err_code='E0003' err_msg="'sql'" data=None
INFO: xxx.xxx.xxx.xxx:62318 - "POST /api/v1/editor/sql/run HTTP/1.1" 400 Bad Request
ERROR: Exception in ASGI application
| File "/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
| yield
| File "/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/starlette/middleware/base.py", line 190, in call
| async with anyio.create_task_group() as task_group:
| File "/miniconda3/envs/dbgpt_env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 680, in aexit
| raise BaseExceptionGroup(
| exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: