Closed mpeterson closed 9 years ago
Doing a search renders this log:
2014-06-13 01:24:26,491 (-4c02bb70) : DEBUG (runtime:717) - Handling request GET /music/spotify
2014-06-13 01:24:26,509 (-4c02bb70) : DEBUG (runtime:814) - Found route matching /music/spotify
2014-06-13 01:24:26,518 (-4c02bb70) : DEBUG (base:123) - Checking if com.plexapp.plugins.spotify2 is broken
2014-06-13 01:24:26,525 (-4c02bb70) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjgKY29tLnBsZXhhcHAucGx1Z2lucy5zcG90aWZ5MnMxMAppZGVudGlmaWVycjAK'
2014-06-13 01:24:26,618 (-4c02bb70) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1069 bytes
2014-06-13 01:26:08,821 (-4c02bb70) : DEBUG (runtime:717) - Handling request GET /music/spotify/search?query=abc
2014-06-13 01:26:08,834 (-4c02bb70) : DEBUG (runtime:814) - Found route matching /music/spotify/search
2014-06-13 01:26:08,842 (-4c02bb70) : INFO (search:58) - Search query: "abc", type: all, limit: 7, plain: False
2014-06-13 01:26:28,852 (-4ba4fb70) : DEBUG (runtime:717) - Handling request GET /music/spotify
2014-06-13 01:26:28,864 (-4ba4fb70) : DEBUG (runtime:814) - Found route matching /music/spotify
2014-06-13 01:26:28,874 (-4ba4fb70) : DEBUG (base:123) - Checking if com.plexapp.plugins.spotify2 is broken
2014-06-13 01:26:28,881 (-4ba4fb70) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjgKY29tLnBsZXhhcHAucGx1Z2lucy5zcG90aWZ5MnMxMAppZGVudGlmaWVycjAK'
2014-06-13 01:26:28,971 (-4ba4fb70) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1069 bytes
2014-06-13 01:26:38,881 (-4c02bb70) : CRITICAL (runtime:883) - Exception (most recent call last):
File "/share/MD0_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
result = f(**d)
File "/root/Library/Plex Media Server/Plug-ins/Spotify2.bundle/Contents/Code/__init__.py", line 59, in search
return sp_search.run(**kwargs)
File "/share/MD0_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 19, in _apply
return apply(f, args, kwargs)
File "/root/Library/Plex Media Server/Plug-ins/Spotify2.bundle/Contents/Code/search.py", line 59, in run
result = self.client.search(query, type, max_results=limit)
File "/root/Library/Plex Media Server/Plug-ins/Spotify2.bundle/Contents/Code/client.py", line 43, in search
return self.spotify.search(query, query_type, max_results, offset)
File "/root/Library/Plex Media Server/Plug-ins/Spotify2.bundle/Contents/Libraries/Shared/spotify_web/friendly.py", line 464, in search
return SpotifySearch(self, query, query_type=query_type, max_results=max_results, offset=offset)
File "/root/Library/Plex Media Server/Plug-ins/Spotify2.bundle/Contents/Libraries/Shared/spotify_web/search.py", line 12, in __init__
self.populate()
File "/root/Library/Plex Media Server/Plug-ins/Spotify2.bundle/Contents/Libraries/Shared/spotify_web/search.py", line 16, in populate
xml = xml[38:] # trim UTF8 declaration
TypeError: 'bool' object has no attribute '__getitem__'
Do you have node.js installed on your server? currently this is required on *nix systems for part of the authentication process with Spotify.
Either grab it from apt/yum, or install the binary manually (see this post https://forums.plex.tv/index.php/topic/107169-rel-spotify2/page-6#entry658621)
Yes, node.js is installed and on the $PATH.
[~] # node --version
v0.10.15
It seems to be failing right where it uses node, so something must be failing there.
Could you switch to the develop branch? there is a large number of improvements/features coming and more details will be logged when there is a problem using node now.
Download here: develop.zip
Might need to delete the current "Spotify2.bundle" in your "Plug-ins" directory first (instead of just dropping the new one into the folder) otherwise there can be conflicts with the old code-base.
Same log as @mpeterson.
Can confirm develop branch works.
I'm a pro subscriber. Using master version (v0.4.4) on a QNAP ARM (TS-219p)
The log can be seen here: