API Query Param updates
I've been trying to debug why the addon seems to crash occasionally early morning whilst doing a sync. Digging through the logs and the plex logs I spotted a lot of errors plex side not related but to do with the API calls.
Oct 24, 2022 10:35:22.188 [0x7ff7f2993b38] WARN - [Req#56bfb] Missing X-Plex-Container-Size header. This will fail with status code 400 in the future. Oct 24, 2022 10:35:25.475 [0x7ff7f2f9cb38] WARN - [Req#56e0e] Missing X-Plex-Container-Size header. This will fail with status code 400 in the future. Oct 24, 2022 10:35:35.340 [0x7ff7f2f9cb38] WARN - [Req#56e0b] QueryParser: Invalid field 'checkFiles' found, ignoring. Oct 24, 2022 10:35:35.340 [0x7ff7f2f9cb38] WARN - [Req#56e0b] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Looks like a couple of amends are needed to the request params.
Thanks for this, but I cannot replicate this warning by the PMS. Closing for now.
I've just set up a Nexus build and installed clean with no add-ons. I am again seeing :
Jan 19, 2023 12:18:37.521 [0x7f0d0ee65b38] WARN - [Req#71e3c1] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Jan 19, 2023 12:18:37.572 [0x7f0d10344b38] WARN - [Req#71e3c2] QueryParser: Invalid field 'checkFiles' found, ignoring.
Jan 19, 2023 12:18:37.572 [0x7f0d10344b38] WARN - [Req#71e3c2] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Jan 19, 2023 12:18:37.685 [0x7f0d10141b38] WARN - [Req#71e3c3] QueryParser: Invalid field 'checkFiles' found, ignoring.
Jan 19, 2023 12:18:37.685 [0x7f0d10141b38] WARN - [Req#71e3c3] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Jan 19, 2023 12:18:37.809 [0x7f0d0ff3eb38] WARN - [Req#71e3c4] QueryParser: Invalid field 'checkFiles' found, ignoring.
Jan 19, 2023 12:18:37.809 [0x7f0d0ff3eb38] WARN - [Req#71e3c4] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Jan 19, 2023 12:18:37.859 [0x7f0d0f068b38] WARN - [Req#71e3c5] QueryParser: Invalid field 'checkFiles' found, ignoring.
Jan 19, 2023 12:18:37.859 [0x7f0d0f068b38] WARN - [Req#71e3c5] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Jan 19, 2023 12:18:37.874 [0x7f0d0ea5fb38] WARN - [Req#71e3c6] QueryParser: Invalid field 'checkFiles' found, ignoring.
Jan 19, 2023 12:18:37.875 [0x7f0d0ea5fb38] WARN - [Req#71e3c6] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Jan 19, 2023 12:18:38.056 [0x7f0d0f26bb38] WARN - [Req#71e3c7] QueryParser: Invalid field 'checkFiles' found, ignoring.
Jan 19, 2023 12:18:38.056 [0x7f0d0f26bb38] WARN - [Req#71e3c7] QueryParser: Invalid field 'skipRefresh' found, ignoring.
Appear in the PMS log. I found commenting out those parameters in the plex_functions.py makes the error go away.
Then the other error only comes from the Hub. If I navigate to the TV Shows library and then pick Rediscover or Start Watching this triggers
Jan 19, 2023 12:25:11.712 [0x7f0d12870b38] WARN - [Req#71eb9f] Missing X-Plex-Container-Size header. This will fail with status code 400 in the future.
Jan 19, 2023 12:25:15.385 [0x7f0d12870b38] WARN - [Req#71eba1] Missing X-Plex-Container-Size header. This will fail with status code 400 in the future.
which I think I see because I have a widget pointing to this on my main build.
Still can't reproduce?!? Could you be so kind and share an entire debug log file? See https://github.com/croneter/PlexKodiConnect/wiki/How-to-Report-A-Bug
Sure. Here is a kodi log from just now and the section from the PMS log during the same time window. Plex Media Server.log kodi.log I just sync'd a TV library.