Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only downloads 10 torrents at once #2

Closed
BoBeR182 opened this issue Apr 5, 2020 · 5 comments
Closed

Only downloads 10 torrents at once #2

BoBeR182 opened this issue Apr 5, 2020 · 5 comments

Comments

@BoBeR182
Copy link

BoBeR182 commented Apr 5, 2020

Seems that RED blocks the 10th torrent request.

ERROR:redlist.redapi:<CIMultiDictProxy('Server': 'nginx', 'Date': 'Sun, 05 Apr 2020 02:02:14 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Frame-Options': 'DENY', 'Content-Encoding': 'gzip', 'Strict-Transport-Security': 'max-age=31536000', 'X-Frame-Options': 'DENY')>
ERROR:redlist.__main__:Error Processing https://open.spotify.com/playlist/XXXXXXXXXXXXXXXXXXXXXXX.
Traceback (most recent call last):
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 220, in entry_point
    results.append(loop.run_until_complete(main(splist, options.yes)))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 135, in main
    await asyncio.gather(*dls)
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 127, in add_torrent
    filename, data = await api.get_torrent(
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/redapi.py", line 135, in get_torrent
    raise ValueError("Wrong content-type: {}".format(
ValueError: Wrong content-type: text/html; charset=UTF-8

@Laharah
Copy link
Owner

Laharah commented Apr 5, 2020

I can't duplicate this on my end. May have been a hicup on red's side. If you re-run do you run into issues at the same spot?

@BoBeR182
Copy link
Author

BoBeR182 commented Apr 5, 2020

Working now. Closing as "INVALID"

@BoBeR182 BoBeR182 closed this as completed Apr 5, 2020
@BoBeR182
Copy link
Author

BoBeR182 commented Apr 5, 2020

Crashed with another error, not sure if on RED's end or the scripts.

Traceback (most recent call last):
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 233, in entry_point
    results.append(loop.run_until_complete(main(splist, options.yes)))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 148, in main
    await asyncio.gather(*dls)
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 140, in add_torrent
    filename, data = await api.get_torrent(
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/redapi.py", line 139, in get_torrent
    return filename, await response.content.read()
  File "/home/bober/redlist/lib/python3.8/site-packages/aiohttp/streams.py", line 358, in read
    block = await self.readany()
  File "/home/bober/redlist/lib/python3.8/site-packages/aiohttp/streams.py", line 380, in readany
    await self._wait('readany')
  File "/home/bober/redlist/lib/python3.8/site-packages/aiohttp/streams.py", line 296, in _wait
    await waiter
aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed

It got about 32 torrents in out of 46 expected to download.

@BoBeR182 BoBeR182 reopened this Apr 5, 2020
@Laharah
Copy link
Owner

Laharah commented Apr 5, 2020

That error makes it look like a connection error of some kind. If it keeps failing at the same point you'll have to get me more info so I can look deeper at the specific torrent it fails at.

Edit: You can post a message to me through https://keybase.io/laharah. If you don't have keybase just encrypt it https://keybase.io/encrypt#laharah and post it here as a reply.

@BoBeR182
Copy link
Author

BoBeR182 commented Apr 5, 2020

Rerunning it solved the issue.

@BoBeR182 BoBeR182 closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants