rckclmbr / pyportify

App to transfer your spotify playlists to Google Play Music
Apache License 2.0
779 stars 57 forks source link

"Error handling request" #105

Closed mbeavitt closed 7 years ago

mbeavitt commented 7 years ago

first time using pyportify, got to the last page after I opened the browser and it just gave me the background image. Copied this from the cmd window, help would be much appreciated!

Listening on http://0.0.0.0:3132 Please open your browser window to http://localhost:3132 Error handling request Traceback (most recent call last): File "site-packages\aiohttp\server.py", line 265, in start File "site-packages\aiohttp\web.py", line 96, in handle_request File "pyportify\middlwares.py", line 18, in index_handler File "pyportify\app.py", line 117, in transfer_start File "pyportify\app.py", line 141, in transfer_playlists File "pyportify\spotify.py", line 77, in fetch_playlist_tracks File "pyportify\spotify.py", line 71, in fetch_saved_tracks File "pyportify\spotify.py", line 61, in _http_get_all File "pyportify\spotify.py", line 122, in _http_get Exception: Error: {'error': {'status': 403, 'message': 'Insufficient client scop e'}}, url: https://api.spotify.com/v1/me/tracks

rckclmbr commented 7 years ago

You need more permissions when you get the all key, or spotify premium if you don't have it

On May 28, 2017 7:12 AM, "mbeavitt" notifications@github.com wrote:

first time using pyportify, got to the last page after I opened the browser and it just gave me the background image. Copied this from the cmd window, help would be much appreciated!

Listening on http://0.0.0.0:3132 Please open your browser window to http://localhost:3132 Error handling request Traceback (most recent call last): File "site-packages\aiohttp\server.py", line 265, in start File "site-packages\aiohttp\web.py", line 96, in handle_request File "pyportify\middlwares.py", line 18, in index_handler File "pyportify\app.py", line 117, in transfer_start File "pyportify\app.py", line 141, in transfer_playlists File "pyportify\spotify.py", line 77, in fetch_playlist_tracks File "pyportify\spotify.py", line 71, in fetch_saved_tracks File "pyportify\spotify.py", line 61, in _http_get_all File "pyportify\spotify.py", line 122, in _http_get Exception: Error: {'error': {'status': 403, 'message': 'Insufficient client scop e'}}, url: https://api.spotify.com/v1/me/tracks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rckclmbr/pyportify/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFzY1glGja12_mANBNnU1ELnLd2UCh_ks5r-YDigaJpZM4NoqGp .

rckclmbr commented 7 years ago

*api key

On May 28, 2017 7:32 AM, "Joshua Braegger" rckclmbr@gmail.com wrote:

You need more permissions when you get the all key, or spotify premium if you don't have it

On May 28, 2017 7:12 AM, "mbeavitt" notifications@github.com wrote:

first time using pyportify, got to the last page after I opened the browser and it just gave me the background image. Copied this from the cmd window, help would be much appreciated!

Listening on http://0.0.0.0:3132 Please open your browser window to http://localhost:3132 Error handling request Traceback (most recent call last): File "site-packages\aiohttp\server.py", line 265, in start File "site-packages\aiohttp\web.py", line 96, in handle_request File "pyportify\middlwares.py", line 18, in index_handler File "pyportify\app.py", line 117, in transfer_start File "pyportify\app.py", line 141, in transfer_playlists File "pyportify\spotify.py", line 77, in fetch_playlist_tracks File "pyportify\spotify.py", line 71, in fetch_saved_tracks File "pyportify\spotify.py", line 61, in _http_get_all File "pyportify\spotify.py", line 122, in _http_get Exception: Error: {'error': {'status': 403, 'message': 'Insufficient client scop e'}}, url: https://api.spotify.com/v1/me/tracks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rckclmbr/pyportify/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFzY1glGja12_mANBNnU1ELnLd2UCh_ks5r-YDigaJpZM4NoqGp .

mbeavitt commented 7 years ago

Yeah, I've got spotify premium and I checked both "playlist-read-private" and "playlist-read-collaborative" after clicking "get OAuth token". Any ideas? Thanks for replying so quickly

rckclmbr commented 7 years ago

Some others had this problem -- try checking all the boxes

On May 28, 2017 7:38 AM, "mbeavitt" notifications@github.com wrote:

Yeah, I've got spotify premium and I checked both "playlist-read-private" and "playlist-read-collaborative" after clicking "get OAuth token". Any ideas? Thanks for replying so quickly

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rckclmbr/pyportify/issues/105#issuecomment-304519125, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFzY1ldk5EwQw1NzplWUfWqYraIETP5ks5r-Yb7gaJpZM4NoqGp .

mbeavitt commented 7 years ago

Alright cool, that actually helped some. It followed the process onto finding all the playlists and onto the "saved tracks" page. Unfortunately I got another error.

Error handling request Traceback (most recent call last): File "site-packages\aiohttp\server.py", line 265, in start File "site-packages\aiohttp\web.py", line 96, in handle_request File "pyportify\middlwares.py", line 18, in index_handler File "pyportify\app.py", line 117, in transfer_start File "pyportify\app.py", line 169, in transfer_playlists File "asyncio\futures.py", line 358, in iter File "asyncio\tasks.py", line 290, in _wakeup File "asyncio\futures.py", line 274, in result File "asyncio\tasks.py", line 239, in _step File "pyportify\app.py", line 236, in search_gm_track File "pyportify\google.py", line 59, in find_best_track File "pyportify\google.py", line 52, in search_all_access File "pyportify\google.py", line 112, in _http_get File "site-packages\aiohttp\client.py", line 519, in iter File "site-packages\aiohttp\client.py", line 162, in _request File "site-packages\aiohttp\client_reqrep.py", line 81, in init File "site-packages\yarl__init__.py", line 674, in with_query File "yarl_quoting.pyx", line 49, in yarl._quoting._quote (yarl/_quoting.c:14 44) File "yarl_quoting.pyx", line 74, in yarl._quoting._do_quote (yarl/_quoting.c :1735) ValueError: Unallowed PCT % P

therightstuff commented 7 years ago

i have the same problem, i believe it has to do with the track not being found on google play:

Found 'FPU - Crockett's Theme' in Google Music Error handling request Traceback (most recent call last): File "site-packages\aiohttp\server.py", line 265, in start File "site-packages\aiohttp\web.py", line 96, in handle_request File "pyportify\middlwares.py", line 18, in index_handler File "pyportify\app.py", line 117, in transfer_start File "pyportify\app.py", line 169, in transfer_playlists File "asyncio\futures.py", line 358, in iter File "asyncio\tasks.py", line 290, in _wakeup File "asyncio\futures.py", line 274, in result File "asyncio\tasks.py", line 239, in _step File "pyportify\app.py", line 236, in search_gm_track File "pyportify\google.py", line 59, in find_best_track File "pyportify\google.py", line 52, in search_all_access File "pyportify\google.py", line 112, in _http_get File "site-packages\aiohttp\client.py", line 519, in iter File "site-packages\aiohttp\client.py", line 162, in _request File "site-packages\aiohttp\client_reqrep.py", line 81, in init File "site-packages\yarl__init__.py", line 674, in with_query File "yarl_quoting.pyx", line 49, in yarl._quoting._quote (yarl/_quoting.c:1444) File "yarl_quoting.pyx", line 74, in yarl._quoting._do_quote (yarl/_quoting.c:1735) ValueError: Unallowed PCT % D