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

Filter Issue: coroutine 'ModelManager.all_subs_retriver' was never awaited

Open m4rc1nt0sch opened this issue 8 months ago • 4 comments

Hey there,

I'm running into an issue in the last days, from one day to another without changing anything.

I get an error message when trying to fetch the active and expired subscriptions:

Error Message:

/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/data/models/manager.py:83: 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

Am I the only one with this and is this an issue on my end, or does anyone else can reproduce it?

Thanks

System Info:

  • OS: macOS 13.5.1
  • Browser: Firefox 135.0.1
  • Version: 3.12.9
  • Python installed via pipx: 3.11.5

log and config:

config.json ofscraper_main_profile_2025-04-05.log

m4rc1nt0sch avatar Apr 05 '25 15:04 m4rc1nt0sch

This has to do something with aio under the advance options in the config breaking. You can change aio to httpx or if you want to stay using aio then use 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

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

cjb900 avatar Apr 05 '25 16:04 cjb900

Updated to aio 3.11.16 Made the ssl=False change

Userlist works again, many thanks

gobharv avatar Apr 05 '25 17:04 gobharv

same issue, switching backend from aio to httpx fixed it for me.

functionally should this be any different? I'm not sure what changing this option really does

SpoogLord avatar Apr 06 '25 20:04 SpoogLord

Also #517

jeremymeyers avatar Apr 08 '25 01:04 jeremymeyers

This is a duplicate aio may be blocked for some people, there is no fix

The new dev version have implemented some changes to allow for wider success of downloads, while also simplifying the client code

datawhores avatar May 30 '25 19:05 datawhores