[GH-ISSUE #4561] When Searching: Too many packets in payload #116966

Closed
opened 2026-05-20 18:42:48 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @meetzuber on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4561

Discussed in https://github.com/open-webui/open-webui/discussions/3881

Originally posted by luochen1990 July 15, 2024

Bug Report

Description

Bug Summary:
[Provide a brief but clear summary of the bug]

When using the search function, this error occasionally occurs, with a probability of about 1 in 10 to 20 search queries in my case, and it cannot be consistently reproduced.

This error was initially mentioned at https://github.com/NixOS/nixpkgs/issues/325673.

The source code from the error stack is here

And there is a related issue here

The error stack trace:

post request handler error
Traceback (most recent call last):
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_server.py", line 306, in handle_request
    await socket.handle_post_request(environ)
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_socket.py", line 109, in handle_post_request
    p = payload.Payload(encoded_payload=body)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 13, in __init__
    self.decode(encoded_payload)
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 44, in decode
    raise ValueError('Too many packets in payload')
ValueError: Too many packets in payload
ERROR:engineio.server:post request handler error
Traceback (most recent call last):
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_server.py", line 306, in handle_request
    await socket.handle_post_request(environ)
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_socket.py", line 109, in handle_post_request
    p = payload.Payload(encoded_payload=body)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 13, in __init__
    self.decode(encoded_payload)
  File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 44, in decode
    raise ValueError('Too many packets in payload')

Environment

  • Open WebUI Version: 0.3.8
  • Operating System: NixOS unstable

Steps to reproduce

Upload aprrox. 20 large pdf files of same topic like, vmware, emcstorage, netapp etc and prompt with all document, this error will come on console/docker logs, there will not be any error on webui. On webui everything will seems fine.
also enable reranking.

This may leads to accuracy in llm response as all context may not be passed.

Originally created by @meetzuber on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4561 ### Discussed in https://github.com/open-webui/open-webui/discussions/3881 <div type='discussions-op-text'> <sup>Originally posted by **luochen1990** July 15, 2024</sup> # Bug Report ## Description **Bug Summary:** [Provide a brief but clear summary of the bug] When using the search function, this error occasionally occurs, with a probability of about 1 in 10 to 20 search queries in my case, and it cannot be consistently reproduced. This error was initially mentioned at https://github.com/NixOS/nixpkgs/issues/325673. The source code from the error stack is [here](https://github.com/miguelgrinberg/python-engineio/blob/main/src/engineio/payload.py#L44) And there is a related issue [here](https://github.com/miguelgrinberg/python-engineio/issues/142) The error stack trace: ``` post request handler error Traceback (most recent call last): File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_server.py", line 306, in handle_request await socket.handle_post_request(environ) File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_socket.py", line 109, in handle_post_request p = payload.Payload(encoded_payload=body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 13, in __init__ self.decode(encoded_payload) File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 44, in decode raise ValueError('Too many packets in payload') ValueError: Too many packets in payload ERROR:engineio.server:post request handler error Traceback (most recent call last): File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_server.py", line 306, in handle_request await socket.handle_post_request(environ) File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/async_socket.py", line 109, in handle_post_request p = payload.Payload(encoded_payload=body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 13, in __init__ self.decode(encoded_payload) File "/nix/store/hza544rqa6xrn0mmkrga9jq4bbdrxia1-python3.12-python-engineio-4.9.1/lib/python3.12/site-packages/engineio/payload.py", line 44, in decode raise ValueError('Too many packets in payload') ``` ## Environment - **Open WebUI Version:** 0.3.8 - **Operating System:** NixOS unstable ## Steps to reproduce Upload aprrox. 20 large pdf files of same topic like, vmware, emcstorage, netapp etc and prompt with all document, this error will come on console/docker logs, there will not be any error on webui. On webui everything will seems fine. also enable reranking. This may leads to accuracy in llm response as all context may not be passed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#116966