Skip to content

KeyError: 'response' when I try to download content from Fansly #2149

@fa-rey

Description

@fa-rey

Good afternoon, below is what the program execution shows before it was interrupted. After choosing to download all media (option 0), execution is interrupted at line 345 of user_model.py.

Thank you in advance for your attention and help.

[2025-06-23 14:21:39] Assigning Jobs
Choose Medias: 0 = All | 1 = Images | 2 = Videos | 3 = Audios | 4 = Texts
1
Processing Scraped Posts
100%|███████████████████████████████████████████████████████████████████████████████| 88/88 [00:00<00:00, 12565.49it/s]
theevelynmarin: Renaming files.
Traceback (most recent call last):
File "C:\Users\x\ONLYFANS SCRAPERS\UltimaScraper\UltimaScraper-main\start_us.py", line 62, in
asyncio.run(main())
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\x\ONLYFANS SCRAPERS\UltimaScraper\UltimaScraper-main\start_us.py", line 44, in main
_api = await USR.start(
^^^^^^^^^^^^^^^^
File "C:\Users\x\ONLYFANS SCRAPERS\UltimaScraper\UltimaScraper-main\ultima_scraper\ultima_scraper.py", line 50, in start
await self.start_datascraper(datascraper)
File "C:\Users\x\ONLYFANS SCRAPERS\UltimaScraper\UltimaScraper-main\ultima_scraper\ultima_scraper.py", line 137, in start_datascraper
await datascraper.datascraper.api.job_manager.process_jobs()
File "C:\Users\x\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-P1go3bEy-py3.11\Lib\site-packages\ultima_scraper_api\managers\job_manager\job_manager.py", line 45, in process_jobs
await asyncio.create_task(self.__worker())
File "C:\Users\x\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-P1go3bEy-py3.11\Lib\site-packages\ultima_scraper_api\managers\job_manager\job_manager.py", line 53, in __worker
await job.task
File "C:\Users\x\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-P1go3bEy-py3.11\Lib\site-packages\ultima_scraper_collection\modules\module_streamliner.py", line 174, in prepare_scraper
unrefined_set: list[message_types | Any] = await user.get_messages()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-P1go3bEy-py3.11\Lib\site-packages\ultima_scraper_api\apis\fansly\classes\user_model.py", line 360, in get_messages
groups = await self.get_groups()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-P1go3bEy-py3.11\Lib\site-packages\ultima_scraper_api\apis\fansly\classes\user_model.py", line 345, in get_groups
final_response: dict[str, Any] = response["response"]
~~~~~~~~^^^^^^^^^^^^
KeyError: 'response'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions