rckclmbr / pyportify

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

Issue using docker container pyportify-copyall #116

Open cjqian opened 6 years ago

cjqian commented 6 years ago

Stack trace:

Gathering tracks for playlist Saved Tracks (1206)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 559, in start
    (message, payload) = yield from self._protocol.read()
  File "/usr/local/lib/python3.6/site-packages/aiohttp/streams.py", line 509, in read
    yield from self._waiter
  File "/usr/local/lib/python3.6/site-packages/aiohttp/client_proto.py", line 165, in data_received
    messages, upgraded, tail = self._parser.feed_data(data)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/http_parser.py", line 133, in feed_data
    msg = self.parse_message(self._lines)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/http_parser.py", line 420, in parse_message
    close, compression, upgrade, chunked = self.parse_headers(lines)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/http_parser.py", line 292, in parse_headers
    self.max_field_size)
aiohttp.http_exceptions.LineTooLong: 400, message='Got more than 8190 bytes when reading request header field X-Google-Apiary-Auth-Scopes.'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/pyportify-copyall", line 11, in <module>
    load_entry_point('pyportify==0.3.16', 'console_scripts', 'pyportify-copyall')()
  File "/usr/local/lib/python3.6/site-packages/pyportify/copy_all.py", line 62, in main
    loop.run_until_complete(start())
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.6/site-packages/pyportify/copy_all.py", line 56, in start
    yield from app.transfer_playlists(None, s, g, playlists)
  File "/usr/local/lib/python3.6/site-packages/pyportify/app.py", line 169, in transfer_playlists
    done = yield from asyncio.gather(*tasks)
  File "/usr/local/lib/python3.6/site-packages/pyportify/app.py", line 242, in search_gm_track
    track = yield from g.find_best_track(search_query)
  File "/usr/local/lib/python3.6/site-packages/pyportify/google.py", line 56, in find_best_track
    data = yield from self.search_all_access(search_query)
  File "/usr/local/lib/python3.6/site-packages/pyportify/google.py", line 48, in search_all_access
    'ct': '1,2,3,4,6,7,8,9',
  File "/usr/local/lib/python3.6/site-packages/pyportify/google.py", line 113, in _http_get
    params=merged_params,
  File "/usr/local/lib/python3.6/site-packages/aiohttp/helpers.py", line 97, in __iter__
    ret = yield from self._coro
  File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 241, in _request
    yield from resp.start(conn, read_until_eof)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 564, in start
    message=exc.message, headers=exc.headers) from exc
aiohttp.client_exceptions.ClientResponseError: 400, message='Got more than 8190 bytes when reading request header field X-Google-Apiary-Auth-Scopes.'
Exception ignored in: <generator object search_gm_track at 0x7fdf869e8200>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pyportify/app.py", line 238, in search_gm_track
  File "/usr/local/lib/python3.6/asyncio/locks.py", line 67, in __iter__
  File "/usr/local/lib/python3.6/asyncio/locks.py", line 455, in acquire
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 574, in call_soon
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 357, in _check_closed
RuntimeError: Event loop is closed
Exception ignored in: <generator object search_gm_track at 0x7fdf86988200>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pyportify/app.py", line 238, in search_gm_track
  File "/usr/local/lib/python3.6/asyncio/locks.py", line 67, in __iter__
  File "/usr/local/lib/python3.6/asyncio/locks.py", line 455, in acquire
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 574, in call_soon
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 357, in _check_closed
RuntimeError: Event loop is closed