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

Download fails with 'NoneType' is not iterable #18

Closed
3 tasks done
KyleBro22 opened this issue Feb 9, 2024 · 5 comments
Closed
3 tasks done

Download fails with 'NoneType' is not iterable #18

KyleBro22 opened this issue Feb 9, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@KyleBro22
Copy link

Bug Description

Download fails with the following error

[ Info ] [2024-02-09 | 08:42]: Inspecting Timeline cursor: 12345 [CID: 67890]
[ [42]ERROR ] [2024-02-09 | 08:42]: Unexpected error during parsing Timeline content;
Traceback (most recent call last):
  File "/root/fanslyscraper/fansly-downloader-ng-0.8.4/download/common.py", line 113, in process_download_accessible_media
    media_items += [parse_media_info(state, media_info, post_id)]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/fanslyscraper/fansly-downloader-ng-0.8.4/media/media.py", line 156, in parse_media_info
    parse_variants(item, content=content, content_type='media', media_info=media_info)
  File "/root/fanslyscraper/fansly-downloader-ng-0.8.4/media/media.py", line 72, in parse_variants
    if not 'Key-Pair-Id' in item.highest_variants_resolution_url:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

After pressing enter a couple of times the script started to run again, the error is 6 times in the log with the same text.
I ran the script more than once but got the same error.

Expected behavior

The script should run through the timeline and download all files

Actual behavior

The script stops with an error and seems to skip timeline => Missing items: 21 (this may indicate a problem)

Environment Information

  • Operating System: Ubuntu 22.04.3
  • Fansly Downloader Version: 0.8.4
  • Fansly Downloader Type: source => fansly_downloader_ng.py, Python 3.11
  • Specific creators name: currently "PetiteNymphet"

User Research

I have done the following:

Additional context

@prof79
Copy link
Owner

prof79 commented Feb 9, 2024

Thanks for all the info, I'm currently ill, I'll come back to you.

@prof79 prof79 self-assigned this Feb 9, 2024
@KyleBro22
Copy link
Author

no worries, get well soon

@prof79 prof79 added the bug Something isn't working label Feb 14, 2024
@prof79 prof79 closed this as completed in 48c97f3 Feb 15, 2024
@prof79 prof79 reopened this Feb 15, 2024
@prof79
Copy link
Owner

prof79 commented Feb 15, 2024

Hi,

although you were so explicit - I couldn't reproduce maybe because I'm not subscribed to the creator. But I've included a safety check that hopefully should work so please give v0.8.7 a go and give me some feedback. Thanks!

@KyleBro22
Copy link
Author

Hi,

thanks for the quick fix.
The error is gone but for some reason Iam still missing the 21 items.
Theres no obvious error or skip in the output/log (I also tried --debug but that crashes...)
Ill move the existing files and try to redownload all on the weekend to see if that changes anything.

@KyleBro22
Copy link
Author

I moved the files and downloaded everything again with v0.8.17, theres still 21 missing items.
Iam not sure what they are but its fine for now, the error mentioned above seems to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants