OF-Scraper icon indicating copy to clipboard operation
OF-Scraper copied to clipboard

RuntimeWarning: coroutine 'ModelManager.all_subs_retriver' was never awaited self.all_subs_retriver(refetch=False)

Open CannotTouch opened this issue 7 months ago • 7 comments

With Python 3.11 and ofscraper 3.13.dev5 i receive this error when I use the

ofscraper -a download -ts --after 20250503 -o all -ul PIN


No accounts found during scan
╭───────────────────────────────────────────────── Activity Progress ──────────────────────────────────────────────────╮
│ Getting subscriptions                                                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯




C:\Users\bla\AppData\Local\Programs\Python\Python311\Lib\site-packages\ofscraper\data\models\manager.py:86: RuntimeWarning: coroutine 'ModelManager.all_subs_retriver' was never awaited
  self.all_subs_retriver(refetch=False)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
You have filtered the user list to zero

Can you help me plz?

CannotTouch avatar May 08 '25 08:05 CannotTouch

using the windows exe with the same config and auth files all works fine

ofscraper_windows_3.13.dev5.exe -a download -ts --after 20250503 -o all -ul PIN

CannotTouch avatar May 08 '25 08:05 CannotTouch

cambia en config,json aio por httpx

Puk0 avatar May 08 '25 08:05 Puk0

the backent isn't anymore in the config file, if i add under advanced "backent": "httpx", when it start it update the config file automatically removing it (and than coming back to the same error).

CannotTouch avatar May 08 '25 09:05 CannotTouch

Don't use the dev version its not stable. Use 3.12.9 as its the most stable. Also others have had issues with httpx so if you want to use aio you need to use the below fix

@everyone If you have the above issue and switched to httpx but have slow download and want to go back to aio or have the above issue and want to keep using aiouse the below fix.

Make sure you have the latest version aiohttp as of writing, it's 3.11.16 If using pip pip install --upgrade aiohttp if using pipx pipx inject ofscraper aiohttp==3.11.16 --force

You then need to edit sessionmanager.py for ofscraper. Location of this file may vary based on your Operating System and how you have python/ofscraper installed, but below are some example locations WindowsC:\Users\cjb900\AppData\Local\Programs\Python\Python311\Lib\site-packages\ofscraper\classes\sessionmanager.py Ubuntu and possibly other linux distros (using pipx) /home/cjb900/.local/share/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/classes/sessionmanager/sessionmanager.py

Then change line 484 ssl=ssl.create_default_context(cafile=certifi.where()), to ssl=False, F has to be capitalized here

Then if you edited the advanced option in the config.json file from "backend": "aio", to "backend": "httpx", change it back to aio

After making these changed you may need to close and reopen your terminal/command prompt window or reboot your computer for these changes to take effect.

cjb900 avatar May 08 '25 12:05 cjb900

im using aio and never changed to httpx, and it still wont list any subs. i updated aiohttp like cjb900 said, but the other stuff i didn't have to change because it was already like that. Here's my log.

ofscraper_main_profile_2025-05-19.log

Kanye-West99 avatar May 19 '25 15:05 Kanye-West99

ahí dice que usando aio te va dar: aiohttp..ClientResponseError: 403 en la api: https://onlyfans.com/api2/v2/subscriptions/subscribes... hasta te imprime la página/html: Attention Required! | Cloudflare This website is using a security service to protect itself from online attacks. por eso te da: Total expired subscriptions found 0

Solo cambia aio por httpx o cambia tu ip lol

Puk0 avatar May 20 '25 10:05 Puk0

Some clients maybe blocked by OF I haven't had the time to investigate further.

If you have issues in the future you can see if there are any mitigations in the discord or switch to 3.13.dev6 which uses a new updated client for downloading

datawhores avatar May 30 '25 13:05 datawhores