UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

authed.issues = issues if issues["data"] else None / KeyError: 'data'

Open tim1f1 opened this issue 11 months ago • 3 comments

Getting this whenever I try running it


C:\Users\tim_f\Documents\OnlyFans-master>poetry run python start_us.py
Choose Sites: 0 = All | 1 = OnlyFans | 2 = Fansly
1
Traceback (most recent call last):
  File "C:\Users\tim_f\Documents\OnlyFans-master\start_us.py", line 62, in <module>
    asyncio.run(main())
  File "C:\Users\tim_f\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\tim_f\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\tim_f\Documents\OnlyFans-master\start_us.py", line 44, in main
    _api = await USR.start(
  File "C:\Users\tim_f\Documents\OnlyFans-master\ultima_scraper\ultima_scraper.py", line 50, in start
    await self.start_datascraper(datascraper)
  File "C:\Users\tim_f\Documents\OnlyFans-master\ultima_scraper\ultima_scraper.py", line 67, in start_datascraper
    await self.process_profiles(api, global_settings)
  File "C:\Users\tim_f\Documents\OnlyFans-master\ultima_scraper\ultima_scraper.py", line 171, in process_profiles
    authed = await api.login(json_auth)
  File "C:\Users\tim_f\AppData\Local\pypoetry\Cache\virtualenvs\ultima-scraper-VdS0BOvl-py3.10\lib\site-packages\ultima_scraper_api\apis\onlyfans\onlyfans.py", line 38, in login
    authed.issues = issues if issues["data"] else None
KeyError: 'data'

tim1f1 avatar Jan 14 '25 22:01 tim1f1

@DIGITALCRIMINAL any suggestions?

tim1f1 avatar Feb 16 '25 11:02 tim1f1

I had that too today (after cleaning my browser cache).

Be sure to check x_bc is right (it was wrong in my case). One time wrong something is garbled up and it will never work (just getting the same error message repeatedly).

You maybe need to log out and log in again and check that all values are set right.

Then it will work again without code changes.

barthramsay avatar Feb 25 '25 19:02 barthramsay

I had that too today (after cleaning my browser cache).

Be sure to check x_bc is right (it was wrong in my case). One time wrong something is garbled up and it will never work (just getting the same error message repeatedly).

You maybe need to log out and log in again and check that all values are set right.

Then it will work again without code changes.

I've checked the auth.json already, it's all in the right format.

tim1f1 avatar Apr 07 '25 17:04 tim1f1