ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application

Open incredibleeeeee opened this issue 10 months ago • 7 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

RAGFlow workspace code commit ID

v0.17.0 slim

RAGFlow image version

v0.17.0 slim

Other environment information


Actual behavior

chat embed into webpage successful but agent error

Image

2025-03-06 16:22:42,302 INFO 17 - - [06/Mar/2025 16:22:42] "POST /api/v1/agentbots/dbcd3332fa3711ef81b60242ac120006/completions HTTP/1.1" 500 - 2025-03-06 16:22:42,303 ERROR 17 Error on request: Traceback (most recent call last): File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/serving.py", line 370, in run_wsgi execute(self.server.app) File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/serving.py", line 333, in execute for data in application_iter: File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/wsgi.py", line 256, in next return self._next() File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: File "/ragflow/api/db/services/canvas_service.py", line 58, in completion assert cvs.user_id == tenant_id, "You do not own the agent." AssertionError: You do not own the agent.

Expected behavior

No response

Steps to reproduce

create apikey and embed into webpage

Additional information

No response

incredibleeeeee avatar Mar 06 '25 08:03 incredibleeeeee

The problem seems to be that when I join someone else's team, my apikey will appear as its apikey, but in reality, my apikey has not changed

incredibleeeeee avatar Mar 06 '25 09:03 incredibleeeeee

It's hard to reproduce that.

KevinHuSh avatar Mar 07 '25 03:03 KevinHuSh

It's hard to reproduce that.

Invite an account to join their team using several other accounts. The apikey of this invited account will change on the web side, but it will not actually change

incredibleeeeee avatar Mar 07 '25 06:03 incredibleeeeee

我也是这个问题

paddy235 avatar Mar 12 '25 07:03 paddy235

me too

log:

ragflow-server  | 2025-03-12 15:20:19,648 INFO     15 172.19.0.6 - - [12/Mar/2025 15:20:19] "GET /v1/canvas/getsse/695fa19cff0d11efa6720242ac130006 HTTP/1.1" 200 -
ragflow-server  | 2025-03-12 15:20:19,654 INFO     15 172.19.0.6 - - [12/Mar/2025 15:20:19] "POST /api/v1/agentbots/695fa19cff0d11efa6720242ac130006/completions HTTP/1.1" 500 -
ragflow-server  | 2025-03-12 15:20:19,655 ERROR    15 Error on request:
ragflow-server  | Traceback (most recent call last):
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/serving.py", line 370, in run_wsgi
ragflow-server  |     execute(self.server.app)
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/serving.py", line 333, in execute
ragflow-server  |     for data in application_iter:
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/wsgi.py", line 256, in __next__
ragflow-server  |     return self._next()
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
ragflow-server  |     for item in iterable:
ragflow-server  |   File "/ragflow/api/db/services/canvas_service.py", line 58, in completion
ragflow-server  |     assert cvs.user_id == tenant_id, "You do not own the agent."
ragflow-server  | AssertionError: You do not own the agent.
ragflow-server  | 2025-03-12 15:20:31,782 INFO     15 172.19.0.6 - - [12/Mar/2025 15:20:31] "GET /v1/canvas/getsse/695fa19cff0d11efa6720242ac130006 HTTP/1.1" 200 -
ragflow-server  | 2025-03-12 15:20:31,789 INFO     15 172.19.0.6 - - [12/Mar/2025 15:20:31] "POST /api/v1/agentbots/695fa19cff0d11efa6720242ac130006/completions HTTP/1.1" 500 -
ragflow-server  | 2025-03-12 15:20:31,790 ERROR    15 Error on request:
ragflow-server  | Traceback (most recent call last):
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/serving.py", line 370, in run_wsgi
ragflow-server  |     execute(self.server.app)
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/serving.py", line 333, in execute
ragflow-server  |     for data in application_iter:
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/wsgi.py", line 256, in __next__
ragflow-server  |     return self._next()
ragflow-server  |   File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
ragflow-server  |     for item in iterable:
ragflow-server  |   File "/ragflow/api/db/services/canvas_service.py", line 58, in completion
ragflow-server  |     assert cvs.user_id == tenant_id, "You do not own the agent."
ragflow-server  | AssertionError: You do not own the agent.

brower console:

Failed to load resource: the server responded with a status of 500 ()

{"code":100,"data":null,"message":"<MethodNotAllowed '405: Method Not Allowed'>"}

paddy235 avatar Mar 12 '25 07:03 paddy235

退出团队并重新创建 APIKEY,我以此方式解决。 (Remove from Team and recreate APIKEY. I solve it in this way.)

zcarey avatar Mar 12 '25 09:03 zcarey

退出团队并重新创建 APIKEY,我以此方式解决。 (Remove from Team and recreate APIKEY. I solve it in this way.)

But I need to manage the team's knowledge base and reference it

incredibleeeeee avatar Mar 12 '25 09:03 incredibleeeeee