ukdtom / Plex-FindUnmatched.bundle

Plex plugin to find medias, that doesn't exists in the Plex database
42 stars 10 forks source link

Unauthorized (401) error #86

Closed diligiant closed 9 years ago

diligiant commented 9 years ago

Hi.

Here is the log of the error I get when I try to Look for unmatched in a section. I have 1.0.0.6 (from UnSupported AppStore) and latest Plex (Pass version).

Let me know if you need anything.

Frédéric

2015-02-24 14:53:11,495 (111fca000) :  DEBUG (runtime:717) - Handling request GET /applications/findUnmatched
2015-02-24 14:53:11,497 (111fca000) :  DEBUG (runtime:814) - Found route matching /applications/findUnmatched
2015-02-24 14:53:11,497 (111fca000) :  DEBUG (__init__:108) - **********  Starting MainMenu  **********
2015-02-24 14:53:11,497 (111fca000) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/sections'
2015-02-24 14:53:11,505 (111fca000) :  DEBUG (__init__:118) - Title of section is Concerts & Events with a key of 11 and a path of : ['/Volumes/Kids/Concerts & Events']
2015-02-24 14:53:11,505 (111fca000) :  DEBUG (__init__:118) - Title of section is Films enfants with a key of 4 and a path of : ['/Volumes/Kids/Kids/Movies']
2015-02-24 14:53:11,506 (111fca000) :  DEBUG (__init__:118) - Title of section is Movies with a key of 5 and a path of : ['/Volumes/Media/Movies']
2015-02-24 14:53:11,507 (111fca000) :  DEBUG (__init__:118) - Title of section is Séries with a key of 10 and a path of : ['/Volumes/Kids/Kids/TV']
2015-02-24 14:53:11,507 (111fca000) :  DEBUG (__init__:118) - Title of section is Teen Movies with a key of 3 and a path of : ['/Volumes/Kids/Teens/Movies']
2015-02-24 14:53:11,508 (111fca000) :  DEBUG (__init__:118) - Title of section is Teen TV Shows with a key of 9 and a path of : ['/Volumes/Kids/Teens/TV']
2015-02-24 14:53:11,508 (111fca000) :  DEBUG (__init__:118) - Title of section is TV Shows with a key of 7 and a path of : ['/Volumes/Media/TV', '/Volumes/Attic/TV']
2015-02-24 14:53:11,509 (111fca000) :  DEBUG (__init__:124) - **********  Ending MainMenu  **********
2015-02-24 14:53:11,509 (111fca000) :  DEBUG (base:125) - Checking if com.plexapp.plugins.findUnmatch is broken
2015-02-24 14:53:11,509 (111fca000) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzEKY29tLnBsZXhhcHAucGx1Z2lucy5maW5kVW5tYXRjaHMxMAppZGVudGlmaWVycjAK'
2015-02-24 14:53:11,521 (111fca000) :  DEBUG (runtime:106) - Sending packed state data (112 bytes)
2015-02-24 14:53:11,521 (111fca000) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 3355 bytes
2015-02-24 14:53:11,546 (111fca000) :  DEBUG (runtime:717) - Handling request GET /applications/findUnmatched/backgroundScan?paths=%2FVolumes%2FKids%2FKids%2FMovies&title=Films+enfants&random=1.345138&key=4&sectiontype=movie
2015-02-24 14:53:11,548 (111fca000) :  DEBUG (runtime:814) - Found route matching /applications/findUnmatched/backgroundScan
2015-02-24 14:53:11,548 (111fca000) :  DEBUG (__init__:609) - ******* Starting backgroundScan *********
2015-02-24 14:53:11,550 (1123cd000) :  DEBUG (__init__:705) - *******  Starting backgroundScanThread  ***********
2015-02-24 14:53:11,550 (111fca000) :  DEBUG (runtime:1111) - Created a thread named 'backgroundScanThread'
2015-02-24 14:53:11,551 (1123cd000) :  DEBUG (__init__:424) - *********  Starting to get User Prefs  ***************
2015-02-24 14:53:11,551 (1123cd000) :  DEBUG (__init__:427) - ALL_EXTENSIONS is : False
2015-02-24 14:53:11,552 (1123cd000) :  DEBUG (__init__:428) - VALID_EXTENSIONS from prefs are : .m4v, .3gp, .nsv, .ts, .ty, .strm, .rm, .rmvb, .m3u, .mov, .qt, .divx, .xvid, .bivx, .vob, .nrg, .img, .iso, .pva, .wmv, .asf, .asx, .ogm, .m2v, .avi, .bin, .dat, .dvr-ms, .mpg, .mpeg, .mp4, .mkv, .avc, .vp3, .svq3, .nuv, .viv, .dv, .fli, .flv, .rar, .001, .wpl, .zip, .jpg, .mp3
2015-02-24 14:53:11,552 (1123cd000) :  DEBUG (__init__:429) - IGNORED_FILES from prefs are : imdb.nfo, .DS_Store, __db.001, Thumbs.db, .plexignore
2015-02-24 14:53:11,552 (1123cd000) :  DEBUG (__init__:430) - IGNORED_DIRS from prefs are : .@__thumb, .AppleDouble
2015-02-24 14:53:11,552 (1123cd000) :  DEBUG (__init__:431) - IGNORED_EXTENSIONS from prefs are : .srt, .xml, .idx, .jpg, .sub, .nfo, .png, .gif, .txt, .rtf, .m3u, .rar, .sfv, .md5, .ico, .doc, .zip, .SRT2UTF-8
2015-02-24 14:53:11,553 (1123cd000) :  DEBUG (__init__:432) - IGNORE_HIDDEN is : True
2015-02-24 14:53:11,553 (1123cd000) :  DEBUG (__init__:433) - ENABLE_PLEXIGNORE is : True
2015-02-24 14:53:11,553 (1123cd000) :  DEBUG (__init__:434) - *********  Ending get User Prefs  ***************
2015-02-24 14:53:11,553 (1123cd000) :  DEBUG (__init__:713) - Section type is movie
2015-02-24 14:53:11,553 (1123cd000) :  DEBUG (__init__:715) - Path to medias in section is http://127.0.0.1:32400/library/sections/4/all
2015-02-24 14:53:11,554 (1123cd000) :  DEBUG (__init__:442) - ******* Starting scanMovieDB with an URL of http://127.0.0.1:32400/library/sections/4/all***********
2015-02-24 14:53:11,554 (1123cd000) :  DEBUG (__init__:451) - Starting to fetch the list of items in this section
2015-02-24 14:53:11,555 (1123cd000) :  CRITICAL (__init__:455) - The server couldn't fulfill the request. Errorcode was 401
2015-02-24 14:53:11,555 (1123cd000) :  CRITICAL (__init__:748) - Exception happened in backgroundScanThread
2015-02-24 14:53:11,556 (1123cd000) :  CRITICAL (runtime:1122) - Exception in thread named 'backgroundScanThread' (most recent call last):
  File "/Users/frederic/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1120, in _start_thread
    f(*args, **kwargs)
  File "/Users/frederic/Library/Application Support/Plex Media Server/Plug-ins/Plex-FindUnmatched.bundle/Contents/Code/__init__.py", line 718, in backgroundScanThread
    myMediaPaths = scanMovieDB(myMediaURL)
  File "/Users/frederic/Library/Application Support/Plex Media Server/Plug-ins/Plex-FindUnmatched.bundle/Contents/Code/__init__.py", line 453, in scanMovieDB
    response = urlopen(req)
  File "/Users/admin/jenkins/pms-deps-universal-v2/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8d533fc/lib/python2.7/urllib2.py", line 127, in urlopen
  File "/Users/admin/jenkins/pms-deps-universal-v2/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8d533fc/lib/python2.7/urllib2.py", line 410, in open
  File "/Users/admin/jenkins/pms-deps-universal-v2/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8d533fc/lib/python2.7/urllib2.py", line 523, in http_response
  File "/Users/admin/jenkins/pms-deps-universal-v2/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8d533fc/lib/python2.7/urllib2.py", line 448, in error
  File "/Users/admin/jenkins/pms-deps-universal-v2/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8d533fc/lib/python2.7/urllib2.py", line 382, in _call_chain
  File "/Users/admin/jenkins/pms-deps-universal-v2/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8d533fc/lib/python2.7/urllib2.py", line 531, in http_error_default
HTTPError: HTTP Error 401: Unauthorized

2015-02-24 14:53:12,551 (111fca000) :  DEBUG (__init__:687) - ************** Error in thread, stopping wait **************
2015-02-24 14:53:12,552 (111fca000) :  DEBUG (__init__:697) - ******* Ending backgroundScan ***********
2015-02-24 14:53:12,554 (111fca000) :  DEBUG (runtime:106) - Sending packed state data (112 bytes)
2015-02-24 14:53:12,555 (111fca000) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1031 bytes
ukdtom commented 9 years ago

You are using Home Mode. Go into the settings of FindUnmatch, and fill out the credentials for Plex.tv

diligiant commented 9 years ago

Tommy, I tried that but got the same answer. Do I have to stop/start the server ?

ukdtom commented 9 years ago

This is a dev site. Please go to the Plex Forums. That way, everybody learns https://forums.plex.tv/index.php/topic/96063-support-find-my-plug-in-here-for-support/

diligiant commented 9 years ago

ok