pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

pipeline use return Connection closed

Open tcyuan1017 opened this issue 9 months ago • 2 comments

我在管道中匯入https://github.com/open-webui/pipelines/blob/main/examples/filters/rate_limit_filter_pipeline.py 後測試, Image 到達限制後UI介面跳出Connection closed錯誤如圖, Image

預期應該要跳出"Rate limit exceeded. Please try again later." 查看docker logs pipelines如下: Rate limit exceeded. Please try again later. INFO: 172.17.0.1:40990 - "POST /rate_limit_filter_pipeline/filter/inlet HTTP/1.1" 500 Internal Server Error

我該如何排除這錯誤?

tcyuan1017 avatar Mar 21 '25 14:03 tcyuan1017

I have the same problem. This Problem persists across any pipeline. Even with https://github.com/open-webui/pipelines/blob/main/examples/scaffolds/example_pipeline_scaffold.py .

phiwan-dev avatar Mar 25 '25 17:03 phiwan-dev

Okay so this problem occurred because of changes in the open-webui repository, not in the pipelines repository. Previous versions of open-webui prior to 0.5.21 seem to work perfectly fine even with the latest version of pipelines. I assume this commit to be the culprit https://github.com/open-webui/open-webui/commit/5e78a5c510c959625120445aaebd279d1731efc2 but I am not sure. Unfortunately I cannot find any documentation on the "ENABLE_CODE_EXECUTION" environment flag but from what I gathered, it should be set to true by default anyway.

The following workaround works for me (using an older version):

conda create --name open-webui python==3.12
conda activate open-webui
pip install open-webui==0.5.19
open-webui serve

With this is can run my pipelines again.

phiwan-dev avatar Mar 25 '25 20:03 phiwan-dev