From c588fe20ef70aae531d3a791e60b2283e1bf358f Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Thu, 21 May 2020 22:57:48 +0200 Subject: [PATCH] Fixed ValueError when URL list in addToQueue request is too long --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index 8f10d53..dcba984 100644 --- a/server.py +++ b/server.py @@ -18,6 +18,11 @@ import mimetypes mimetypes.add_type('text/css', '.css') mimetypes.add_type('text/javascript', '.js') +# Makes engineio accept more packets from client, needed for long URL lists in addToQueue requests +# https://github.com/miguelgrinberg/python-engineio/issues/142#issuecomment-545807047 +from engineio.payload import Payload +Payload.max_decode_packets = 500 + class CustomFlask(Flask): jinja_options = Flask.jinja_options.copy() jinja_options.update(dict(