croneter / PlexKodiConnect

Plex integration in Kodi done right
GNU General Public License v2.0
1.18k stars 78 forks source link

Error: Unknown metadata type: folder #1996

Closed ABEIDO closed 12 months ago

ABEIDO commented 1 year ago

Help yourself

Describe the bug

Everytime i stop anything via PKC i get an error in logs with causes errors further down the line. It never happens when playing from Plex Web or Plex mobile app. In my case it causes a following error with an integration i have in Home Assistant to Plex with below 2 errors :

Home Assistant: First error Logger: homeassistant.components.plex Source: components/plex/init.py:207 Integration: Plex Media Server (documentation, issues) First occurred: 10:24:59 (3 occurrences) Last logged: 15:02:39

Websocket to PLEX failed, aborting [Error: Unknown]

Home Assistant: Second error Logger: plexwebsocket Source: /usr/local/lib/python3.11/site-packages/plexwebsocket.py:170 First occurred: 10:24:59 (3 occurrences) Last logged: 15:02:39

Unexpected exception occurred: 'sessionKey' Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/plexwebsocket.py", line 131, in running if self.player_event(msg): ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/plexwebsocket.py", line 187, in player_event session_id = payload["sessionKey"]


KeyError: 'sessionKey'

## To Reproduce
Steps to reproduce the behavior:
1. Stop a playing movie via PKC
4. See error in Plex Media Server.log

## Expected behavior
No errors in log

##  KODI LOG FILE!
Sep 29, 2023 15:02:41.502 [10788] ERROR - [Req#f397] Unknown metadata type: folder
Sep 29, 2023 15:02:41.650 [10788] ERROR - [Req#f3a1] Unknown metadata type: folder
Sep 29, 2023 15:02:41.685 [5888] ERROR - [Req#f3a4] Unknown metadata type: folder
Sep 29, 2023 15:02:41.772 [5872] ERROR - [Req#f3ab] Unknown metadata type: folder
Sep 29, 2023 15:02:41.786 [5872] ERROR - [Req#f3ae] Unknown metadata type: folder