question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random NoneType error while downloading

See original GitHub issue

Version 1.0.0 (I just installed it today) Install via Python PIP OS: Linux Mint 20.3 Python Version: 3.8.10 Command: mangadex-dl --login-username (redacted) --login-password (redacted) --save-as tachiyomi --cover original --unsafe https://mangadex.org/title/c1d990dd-9ff2-4e47-b93d-5e56e34c5069/digimon-xros-wars

I know tachiyomi is supposed to be default but I was seeing it using raw format so I enforced it.

I’m not sure what is triggering this. If I restart the download it will go down and skip the files it grabbed then pickup just fine where it left off.

[ERROR] Unhandled exception, AttributeError: 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/cli/__init__.py", line 35, in _main
    download(args)
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/cli/download.py", line 12, in download
    url(args, args.type)
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/cli/url.py", line 144, in __call__
    self.func(self.id, args)
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/cli/url.py", line 66, in download_manga
    dl_manga(*args)
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/main.py", line 331, in download
    fmt.main()
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/format/tachiyomi.py", line 61, in main
    success = downloader.download()
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/downloader.py", line 172, in download
    self._report(resp, length, round((t2 - t1) * 1000), False)
  File "/home/shinji/.local/lib/python3.8/site-packages/mangadex_downloader/downloader.py", line 254, in _report
    if resp.headers.get('x-cache').startswith('HIT'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shinji257commented, May 12, 2022

Here you go. https://termbin.com/d5zp

Commandline in use: mangadex-dl --save-as tachiyomi --cover original --unsafe --verbose https://mangadex.org/title/e8f5317a-fba5-4d8d-ae3c-00b9ee6c1a44/tsf-monogatari

0reactions
mansufcommented, May 13, 2022

This fix is released in v1.0.1. You can re-install the latest stable version 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Random 'NoneType' object is not callable - Miserlou/Zappa
This causes "invalid syntax" once, and then "None Type Object is not callable" for subsequent calls. I discovered this by downloading the ...
Read more >
How to resolve this error: TypeError: 'NoneType' object has ...
I was trying to download a full course from LinkedIn Learning using a code from GitHub. I have already downloaded a couple of...
Read more >
[Solved] TypeError: 'NoneType' Object is Not Subscriptable
On trying to index the var variable, which is of NoneType, we get an error. The 'NoneType' object is not subscriptable.
Read more >
OpenCV: Resolving NoneType errors
When using OpenCV and Python together you'll inevitably run into NoneType errors. Here's how to resolve them.
Read more >
TypeError: 'NoneType' object is not callable : PY-52137
When I run this code (in debug mode) with a breakpoint on the last line, it throws an error in numpy/core/getlimits.py: import matplotlib...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found