[GH-ISSUE #7660] Open-Webui error: Too many packets in payload #118144

Closed
opened 2026-05-20 19:36:29 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ajikmr on GitHub (Dec 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7660

I could see that it was discussed earlier also, but I could not find any resolution. Error comes up when I use file uploads in chat.

I get following error from engineio in web-socket call (shows up in open-webui log)

ValueError('Too many packets in payload')

Error seems to be originating from /usr/local/lib/python3.11/site-packages/engineio/payload.py file. It has hard-coded value for max_decode_packets

max_decode_packets = 16

If I do not use any file attachment in chat, then I do not get any error.
Any suggestion?

I searched a bit online, and I saw this link

https://github.com/miguelgrinberg/python-engineio/issues/142#issuecomment-545822543

from flask_socketio import SocketIO
from engineio.payload import Payload

Payload.max_decode_packets = cfg.service.ENGINEIO_MAX_DECODE_PACKETS
socketio = SocketIO(async_mode='gevent', ping_timeout=cfg.service.PING_TIMEOUT, ping_interval=cfg.service.PING_INTERVAL)
Originally created by @ajikmr on GitHub (Dec 6, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7660 I could see that it was discussed earlier also, but I could not find any resolution. Error comes up when I use file uploads in chat. I get following error from engineio in web-socket call (shows up in open-webui log) _ValueError('Too many packets in payload')_ Error seems to be originating from /usr/local/lib/python3.11/site-packages/engineio/payload.py file. It has hard-coded value for max_decode_packets _max_decode_packets = 16_ If I do not use any file attachment in chat, then I do not get any error. Any suggestion? I searched a bit online, and I saw this link https://github.com/miguelgrinberg/python-engineio/issues/142#issuecomment-545822543 ``` from flask_socketio import SocketIO from engineio.payload import Payload Payload.max_decode_packets = cfg.service.ENGINEIO_MAX_DECODE_PACKETS socketio = SocketIO(async_mode='gevent', ping_timeout=cfg.service.PING_TIMEOUT, ping_interval=cfg.service.PING_INTERVAL) ```
Author
Owner

@ajikmr commented on GitHub (Dec 6, 2024):

At times, I also get error on chat window like

Uh-oh! There was an issue connecting to <model_name>
JSON.parse: unexpected character at line 1 column 1 of the JSON data

Console log shows

Uncaught (in promise) RangeError: Applying a mismatched transaction
Immutable 6
applyInner
applyTransaction
apply
dispatchTransaction
dispatch
t

<!-- gh-comment-id:2523879515 --> @ajikmr commented on GitHub (Dec 6, 2024): At times, I also get error on chat window like _Uh-oh! There was an issue connecting to <model_name> JSON.parse: unexpected character at line 1 column 1 of the JSON data_ Console log shows _Uncaught (in promise) RangeError: Applying a mismatched transaction Immutable 6 applyInner applyTransaction apply dispatchTransaction dispatch t_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#118144