server returned 413 payload too large
PoiScript opened this issue · comments
Never ran into this issue myself. Guessing that for some reason your Plex instance is returning webhook payloads that are >8KiB, which is the default size limit for strings in the web framework.
As a workaround, you could test increasing the data limit with an environment variable. For example ROCKET_LIMITS="{string=131072}"
to set the maximum string size to 128KiB.
Oh yeah, that seems to be a thing that Plex might do with its webhooks.
As stated above, the payload is sent in JSON format inside a multipart HTTP POST request. For the
media.play
andmedia.rate
events, a second part of the POST request contains a JPEG thumbnail for the media.
I think I need to adjust the default limits to get rid of this issue, since even if this doesn't apply to anifunnel's events (only media.scrobble
are ever processed and it's unlikely they'd add a thumbnail to that), it's still confusing to see this in the logs.