trakt / Plex-Trakt-Scrobbler

Add what you are watching on Plex to trakt.tv
1.45k stars 166 forks source link

Error 500 when I try to access to plugin with Kitana #592

Open LePastis opened 3 years ago

LePastis commented 3 years ago

Hi,

I try to access to the plugin with Kitana to do a full pull on my fresh plex install but get a HTTP 500 error on Kitana and I have this trace in trakttv log :

2021-03-06 14:19:26,878 - com.plexapp.plugins.trakttv      (6a4) :  DEBUG (com.plexapp.plugins.trakttv:717) - Handling request GET /video/trakt
2021-03-06 14:19:26,878 - com.plexapp.plugins.trakttv      (6a4) :  DEBUG (com.plexapp.plugins.trakttv:49) - Received packed state data (80 bytes)
2021-03-06 14:19:26,880 - com.plexapp.plugins.trakttv      (6a4) :  DEBUG (com.plexapp.plugins.trakttv:814) - Found route matching /video/trakt
2021-03-06 14:19:26,881 - peewee                           (6a4) :  DEBUG (peewee:99) - ('SELECT "t1"."id", "t1"."code", "t1"."type", "t1"."last_logged_at", "t1"."last_viewed_at", "t1"."exception_hash", "t1"."revision", "t1"."version_base", "t1"."version_branch", "t1"."summary", "t1"."description" FROM "message" AS t1 WHERE ((("t1"."last_logged_at" > ?) AND ("t1"."version_base" = ?)) AND (("t1"."last_viewed_at" IS ?) OR ("t1"."last_viewed_at" < "t1"."last_logged_at")))', ['2021-02-20 13:19:26.881000', u'1.3.3', None])
2021-03-06 14:19:26,884 - peewee                           (6a4) :  DEBUG (peewee:99) - ('SELECT Count(*) FROM "account" AS t1 WHERE (("t1"."id" != ?) AND ("t1"."deleted" = ?))', [0, 0])
2021-03-06 14:19:26,887 - com.plexapp.plugins.trakttv      (6a4) :  DEBUG (com.plexapp.plugins.trakttv:117) - Checking if com.plexapp.plugins.trakttv is broken
2021-03-06 14:19:26,887 - com.plexapp.plugins.trakttv      (6a4) :  DEBUG (com.plexapp.plugins.trakttv:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_'
2021-03-06 14:19:26,895 - com.plexapp.plugins.trakttv      (6a4) :  ERROR (com.plexapp.plugins.trakttv:196) - Error opening URL 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjcKY29tLnBsZXhhcHAucGx1Z2lucy50cmFrdHR2czEwCmlkZW50aWZpZXJyMAo_'
2021-03-06 14:19:26,897 - com.plexapp.plugins.trakttv      (6a4) :  CRITICAL (com.plexapp.plugins.trakttv:574) - Exception (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1b7748a7b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
    result = f(**d)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1b7748a7b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\handlers\base.py", line 122, in call
    identifier = self._core.identifier
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1b7748a7b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\messaging.py", line 86, in call_external_function
    packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1b7748a7b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 346, in http_request
    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1b7748a7b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 118, in __init__
    self.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1b7748a7b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 435, in open
    response = meth(req, response)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

Thank in advance for your help

agneevX commented 3 years ago

Can this be attributed to a recent Plex Media Server update that rendered the plugin useless?

olliebean commented 3 years ago

The latest version of the plugin still works with the latest version of PMS (i.e., Plex is still syncing with Trakt via the plugin) - just not via Kitana. I think it must be due to a PMS update, as the versions of Kitana and the plugin that I have are the same as when it last worked. (Also I think it affects all plugins, not just Trakt.)

agneevX commented 3 years ago

Maybe Plex is finally hammering the final nail on the plugins coffin??

pannal commented 3 years ago

Maybe Plex is finally hammering the final nail on the plugins coffin??

No they aren't. Not with this change at least.

They seemingly ripped out an endpoint but forgot to remove all calls to it: https://github.com/pannal/Kitana/issues/55#issuecomment-792117435

I think it must be due to a PMS update, as the versions of Kitana and the plugin that I have are the same as when it last worked. (Also I think it affects all plugins, not just Trakt.)

This is an issue with all plugins that return an ObjectContainer by default. Sub-Zero still works because it doesn't.

agneevX commented 3 years ago

This is not an issue of this repo, Plex has already released a fix for this in beta. This issue can be closed.