iamkroot/trakt-scrobbler

[BUG] trakt-scrobbler is not trying to connect to plex server after receiving 503 (`Plex Media Server is currently running startup maintenance tasks`)

soredake opened this issue · 0 comments

Describe the bug

A clear and concise description of what the bug/error is.

Desktop (please complete the following information):

  • OS and Version: Windows 11 Pro
  • Python Version: Python 3.12.4
  • Player and Version: not relevant
  • Trakt Scrobbler Version: 1.7.0-beta.1

To Reproduce

Steps to reproduce the behavior:

  1. Setup trakt-scrobbler to monitor plex
  2. Start plex media server and trakt-scrobbler
  3. Stop plex media server
  4. trakt-scrobbler will stop monitoring plex after receiving 503 from it

Log file

Click to see log contents

2024-07-04 22:40:56,307 - DEBUG - plex - utils - Request: get {'url': 'http://localhost:32400/status/sessions'}
2024-07-04 22:41:06,310 - WARNING - plex - utils - Request failed
2024-07-04 22:41:06,310 - DEBUG - plex - utils - Request: get {'url': 'http://localhost:32400/status/sessions'}
2024-07-04 22:41:06,311 - DEBUG - plex - utils - Response: <Response [503]> {"code":503,"title":"Maintenance","status":"Plex Media Server is currently running startup maintenance tasks."}
2024-07-04 22:41:06,311 - ERROR - plex - monitor - Error while getting data from plex: 503 Server Error: Service Unavailable for url: http://localhost:32400/status/sessions
2024-07-04 22:41:06,335 - WARNING - plex - monitor - plex monitor stopped