KeyError: 'hasMore'
hi, i recently updated the scraper and since then i am having the following error:
Traceback (most recent call last):
File "C:\Users\K-Rig-3\Documents\GitHub\UltimaScraper\start_us.py", line 62, in
any suggestions? thank you!
...anyone have a fix?...
I don't have a fix but I am getting this error and doing a little debugging I can see that all the requests are returning with 400 errors {'error': {'code': 400, 'message': 'Bad Request'}} for requests https://onlyfans.com/api2/v2/chats?limit=100&offset=0&order=desc Anyone have any insight as to what would be causing this?
I've been unable to use it for over 2 months
I also have the same problem, any update?
I also encountered this problem, and it was the first time I used the script. Does anyone know how to fix it?
I found the only fix I could do... OFSCRAPER... there is little to no support here... :(
I don't have a fix but I am getting this error and doing a little debugging I can see that all the requests are returning with 400 errors
{'error': {'code': 400, 'message': 'Bad Request'}}for requestshttps://onlyfans.com/api2/v2/chats?limit=100&offset=0&order=descAnyone have any insight as to what would be causing this?
You may be able to bypass the issue by modifying line 109 in .venv/lib/python3.11/site-packages/ultima_scraper_collection/modules/module_streamliner.py:
change chat_users = await self.get_chat_users() to chat_users = []
However, I'm not sure if this change will cause you to miss anything important that needs to be downloaded. It works for me so far.
Additionally, after making this change, you may need to update .venv/lib/python3.11/site-packages/ultima_scraper_api/apis/onlyfans/__init__.py to accommodate changes in the media_item structure from the website.
You may be able to bypass the issue by modifying line 109 in
.venv/lib/python3.11/site-packages/ultima_scraper_collection/modules/module_streamliner.py: changechat_users = await self.get_chat_users()tochat_users = []However, I'm not sure if this change will cause you to miss anything important that needs to be downloaded. It works for me so far.Additionally, after making this change, you may need to update
.venv/lib/python3.11/site-packages/ultima_scraper_api/apis/onlyfans/__init__.pyto accommodate changes in themedia_itemstructure from the website.
Hi, could you please explain how to do the last step and update the python3.11/site-packages/ultima_scraper_api/apis/onlyfans/init.py file? I'm using Windows and currently facing the same issue as this guy https://github.com/UltimaHoarder/UltimaScraper/issues/2121#issuecomment-2439621365. Thx!
Sure, here is my modified __init__.py file. You can backup your old file and try this one. init.txt
change
chat_users = await self.get_chat_users()tochat_users = []
this will probably just scrape nothing as you set all chats to an empty array lol.
to generally fix "KeyError: 'hasmore'" you can disable "messages" (set it to false) in config.json
requests are returning with 400 errors
{'error': {'code': 400, 'message': 'Bad Request'}}for requestshttps://onlyfans.com/api2/v2/chats?limit=100&offset=0&order=desc
@nilejturn22 u got an idea in what file this request is sent?