iamkroot / trakt-scrobbler

Scrobbler for trakt.tv that supports VLC, Plex, MPC-HC, and MPV.
https://github.com/iamkroot/trakt-scrobbler/wiki
GNU General Public License v2.0
464 stars 30 forks source link

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

Closed soredake closed 4 months ago

soredake commented 4 months ago

Describe the bug

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

Desktop (please complete the following information):

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: {"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 ```