Filter Issue: coroutine 'ModelManager.all_subs_retriver' was never awaited
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:
This has to do something with
aiounder the advance options in the config breaking. You can changeaiotohttpxor if you want to stay usingaiothen 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
Updated to aio 3.11.16 Made the ssl=False change
Userlist works again, many thanks
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
Also #517
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