Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application error: a client-side exception has occurred (see the browser console for more information). #1668

Open
3 of 15 tasks
Hec-gitHub opened this issue Jun 26, 2024 · 0 comments
Labels
bug Something isn't working Waiting for reply

Comments

@Hec-gitHub
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

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

image
image

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

  • 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!
@Hec-gitHub Hec-gitHub added bug Something isn't working Waiting for reply labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant