luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
392 stars 19 forks source link

[BUG] Query failed with status 500 Internal Server Error syning from Plex to Jellyfin #118

Open JunkKnight opened 9 months ago

JunkKnight commented 9 months ago

Describe the bug I'm trying to sync from Plex to Jellyfin but it errors out when actually running the sync.

To Reproduce Steps to reproduce the behavior: Set dryrun to false, and let it sync. Error occurs after it builds the list of items that need to be marked.

Logs

Movies: {}
[INFO]: Jellyfin: Updating watched for Jellyfin_Username in library TV Shows for show Agatha Christie's Poirot
[INFO]: Jellyfin: Updating watched for Jellyfin_Username in library Anime for show 86: Eighty Six
[MARK]: Jellyfin: 86: Eighty Six Season 1 Episode 1 Undertaker as watched for Jellyfin_Username in Anime
[ERROR]: Jellyfin: Query post /Users/57125e5594fa4570a29b3e109f401977/PlayedItems/07345be6a1dc6a475359d3d77825a8e1
Results None
Query failed with status 500 Internal Server Error
[ERROR]: Jellyfin: Error updating watched for Jellyfin_Username in library Anime, Query failed with status 500 Internal Server Error
[ERROR]: Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 128, in query
    raise Exception(
Exception: Query failed with status 500 Internal Server Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 826, in update_user_watched
    await self.query(
  File "/app/src/jellyfin.py", line 144, in query
    raise Exception(e)
Exception: Query failed with status 500 Internal Server Error

[MARK]: Jellyfin: Agatha Christie's Poirot Season 1 Episode 1 The Adventure of the Clapham Cook as watched for Jellyfin_Username in TV Shows
[ERROR]: Jellyfin: Query post /Users/57125e5594fa4570a29b3e109f401977/PlayedItems/be4cbe3c161e6fb5a1821f70ac297d5e
Results None
Query failed with status 500 Internal Server Error
[ERROR]: Jellyfin: Error updating watched for Jellyfin_Username in library TV Shows, Query failed with status 500 Internal Server Error
[ERROR]: Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 128, in query
    raise Exception(
Exception: Query failed with status 500 Internal Server Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 826, in update_user_watched
    await self.query(
  File "/app/src/jellyfin.py", line 144, in query
    raise Exception(e)
Exception: Query failed with status 500 Internal Server Error

[MARK]: Jellyfin: The Adjustment Bureau as watched for Jellyfin_Username in Movies
[ERROR]: Jellyfin: Query post /Users/57125e5594fa4570a29b3e109f401977/PlayedItems/44be74b5b381765458a69cc24316d242
Results None
Query failed with status 500 Internal Server Error
[ERROR]: Jellyfin: Error updating watched for Jellyfin_Username in library Movies, Query failed with status 500 Internal Server Error
[ERROR]: Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 128, in query
    raise Exception(
Exception: Query failed with status 500 Internal Server Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/src/jellyfin.py", line 643, in update_user_watched
    await self.query(
  File "/app/src/jellyfin.py", line 144, in query
    raise Exception(e)
Exception: Query failed with status 500 Internal Server Error

Before this it shows in the logs a large list of episode names/numbers I've omitted since it's huge. I also censored my Jellyfin username, but it shows correctly in the logs.

Type:

Additional context It seems to correctly establish a connection to both servers, and dryrun=true passes with out any issues.

luigi311 commented 7 months ago

Can you try the new updates, i removed async from jellyfin since it was causing issues and didnt really speed it up.