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

AUTH Down in Version Higher than 3.13

Open basketballhead6 opened this issue 6 months ago • 12 comments

Describe the bug

Unable to use the script as the script can not authenticate to OnlyFans. This is even happening when pasting a new session using the cookie helper.

To Reproduce

Run the script. It will fail to authenticate and show as down.

Expected behavior

Script should authenticate to OnlyFans and be able to see users you have subscribed to.

Screenshots/Logs

Image

Config

{
    "main_profile": "main_profile",
    "metadata": "{configpath}/{profile}/.data/{model_username}_{model_id}",
    "discord": "",
    "file_options": {
        "save_location": "G:\\Personal\\Content-OF",
        "dir_format": "{model_username}/{responsetype}/{value}/{mediatype}/",
        "file_format": "{date}-{filename}.{ext}",
        "textlength": 0,
        "space_replacer": " ",
        "date": "YYYY-MM-DD",
        "text_type_default": "letter",
        "truncation_default": true
    },
    "download_options": {
        "filter": [
            "Images",
            "Audios",
            "Videos"
        ],
        "auto_resume": true,
        "system_free_min": 0,
        "max_post_count": 0
    },
    "binary_options": {
        "ffmpeg": "C:\\Users\\user\\.config\\ofscraper\\ffmpeg.exe"
    },
    "cdm_options": {
        "private-key": "C:\\Users\\user\\.config\\ofscraper\\private_keys\\private_key.pem",
        "client-id": "C:\\Users\\user\\.config\\ofscraper\\private_keys\\client_id.bin",
        "key-mode-default": "manual"
    },
    "performance_options": {
        "download_sems": 6,
        "download_limit": 0
    },
    "content_filter_options": {
        "block_ads": true,
        "file_size_max": 0,
        "file_size_min": 0,
        "length_max": null,
        "length_min": null
    },
    "advanced_options": {
        "code-execution": false,
        "dynamic-mode-default": "generic",
        "downloadbars": true,
        "cache-mode": "sqlite",
        "rotate_logs": true,
        "custom_values": {
            "DEVIINT": "https://raw.githubusercontent.com/deviint/onlyfans-dynamic-rules/b6b1c1ae3910ed6a8bb282197a1c7dfb732fb82f/dynamicRules.json",
            "DYNAMIC_GENERIC_URL": "https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json"
        },
        "sanitize_text": false,
        "temp_dir": null,
        "remove_hash_match": false,
        "infinite_loop_action_mode": false,
        "enable_auto_after": true,
        "default_user_list": "main",
        "default_black_list": "",
        "logs_expire_time": null,
        "ssl_validation": false
    },
    "script_options": {
        "post_download_script": null,
        "post_script": null
    },
    "responsetype": {
        "timeline": "posts",
        "message": "messages",
        "archived": "archived",
        "paid": "messages",
        "stories": "stories",
        "highlights": "stories",
        "profile": "profile",
        "pinned": "posts",
        "streams": "Streams"
    },
    "overwrites": {
        "audios": {},
        "videos": {},
        "images": {},
        "text": {}
    }
}

System Info

  • OS: Windows 11
  • Browser: Chrome
  • Version: 3.13.2
  • uv install

basketballhead6 avatar Jun 30 '25 07:06 basketballhead6

¿porque doble enlace en custom_values, si el de deviint marca 404: Not Found?

Puk0 avatar Jun 30 '25 07:06 Puk0

¿porque doble enlace en custom_values, si el de deviint marca 404: Not Found?

It's a carry over from when it used to be to work. Just haven't deleted it from the config. I'm using general and AUTH is not working.

basketballhead6 avatar Jun 30 '25 08:06 basketballhead6

https://github.com/datawhores/OF-Scraper/issues/547#issuecomment-2995743536

Puk0 avatar Jun 30 '25 10:06 Puk0

https://github.com/datawhores/OF-Scraper/issues/547#issuecomment-2995743536

I am using that dynamic rules and the script still will not work. I am currently on 13.3 with the exact same config as above and it's working fine so it's something with the later version of the script that isn't allowing the AUTH to work.

basketballhead6 avatar Jun 30 '25 10:06 basketballhead6

As far as I understood the changes in 3.13.1 (from 3.13) the new --env-file handling removed the ability to set custom_values via config, you'll either have to put the generic definition into a file and supply it via the --env-file argument docs, or set an environment variable before launching the script... (this fixed the issue for me)

--env-file argument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:

  • .env-files (format key=value)
  • *.yaml / *.yml (format key: value, flat assignment (so no indentation,...))
  • *.json (format {"key": "value",...}, also flat assignment)
  • * fallback using .env format

To set the generic URL the key is OF_DYNAMIC_GENERIC_URL defined here

ghi820 avatar Jun 30 '25 13:06 ghi820

As far as I understood the changes in 3.13.1 (from 3.13) the new --env-file handling removed the ability to set custom_values via config, you'll either have to put the generic definition into a file and supply it via the --env-file argument docs, or set an environment variable before launching the script... (this fixed the issue for me)

--env-file argument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:

  • .env-files (format key=value)
  • *.yaml / *.yml (format key: value, flat assignment (so no indentation,...))
  • *.json (format {"key": "value",...}, also flat assignment)
  • * fallback using .env format

To set the generic URL the key is OF_DYNAMIC_GENERIC_URL defined here

Yes this is true In the next version you will be able to declare these environment files in the config.json and they will be automatically loaded

datawhores avatar Jun 30 '25 18:06 datawhores

As far as I understood the changes in 3.13.1 (from 3.13) the new --env-file handling removed the ability to set custom_values via config, you'll either have to put the generic definition into a file and supply it via the --env-file argument docs, or set an environment variable before launching the script... (this fixed the issue for me)

--env-file argument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:

  • .env-files (format key=value)
  • *.yaml / *.yml (format key: value, flat assignment (so no indentation,...))
  • *.json (format {"key": "value",...}, also flat assignment)
  • * fallback using .env format

To set the generic URL the key is OF_DYNAMIC_GENERIC_URL defined here

Yes this is true In the next version you will be able to declare these environment files in the config.json and they will be automatically loaded

When do you plan on releasing this version @datawhores?

basketballhead6 avatar Jun 30 '25 19:06 basketballhead6

I'm still testing the some changes I made Probably by the end of the week

But I might release a test version for those who want to try it out

datawhores avatar Jul 01 '25 07:07 datawhores

I'm still testing the some changes I made Probably by the end of the week

But I might release a test version for those who want to try it out

@datawhores, has this latest release got the ability to set the new env variables in the cofig?

basketballhead6 avatar Jul 14 '25 06:07 basketballhead6

Work with: (Linux FC 41) export OF_DYNAMIC_GENERIC_URL="https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json"

... btw i must use pyhton 3.11/3.12 and not latest 3.13 becuase is used old uvloop` (v0.19.0) that is incompatible with latest python, this is fixed in uvloop 0.21 - latest vetrsion

jerryhard avatar Jul 14 '25 23:07 jerryhard

Sorry, I'm not sure if this has been mentioned, but I have been using OnlyFans Cookie Helper to retrieve my auth information, and haven't been able to retrieve any subscriptions, and needed to re-enter my auth info every time.

It finally jumped out at me that Cookie Helper was reporting my SESS as DELETED every time I ran it.

sess=deleted;

I got my actual session from developer tools, entered it in manually, and now everything is running fine.

I'm not smart enough to know if this is being caused by something I've done wrong when I installed Cookie Helper. I'm just sharing my experience.

outsdr01 avatar Sep 23 '25 23:09 outsdr01

Not sure what the proper resolution was/will be for this, but following

As far as I understood the changes in 3.13.1 (from 3.13) the new --env-file handling removed the ability to set custom_values via config, you'll either have to put the generic definition into a file and supply it via the --env-file argument docs, or set an environment variable before launching the script... (this fixed the issue for me)

--env-file argument code calls ofscraper/utils/args/callbacks/arguments/env.py, allowing the following:

* `.env`-files (format `key=value`)

* `*.yaml` / `*.yml` (format `key: value`, flat assignment (so no indentation,...))

* `*.json` (format `{"key": "value",...}`, also flat assignment)

* `*` fallback using `.env` format

To set the generic URL the key is OF_DYNAMIC_GENERIC_URL defined here

Not sure what the proper resolution was/will be for this, but following this advice I tried fumbling with an .env file, couldnt get it to work nor get my config file to save after entering it. What ultimately worked was just running:

set OF_DYNAMIC_GENERIC_URL=https://raw.githubusercontent.com/rafa-9/dynamic-rules/main/rules.json

sophisticated-stoner avatar Nov 20 '25 04:11 sophisticated-stoner

Is this issue recurring? I'm running 3.13.12 and it started having auth issues today. Switching to different dynamic rules isn't helping.

I see a 4 day old version of https://github.com/DATAHOARDERS/dynamic-rules is up, and I think I'm pulling it, but still not having any effect.

Anyone else?

lordoffools avatar Dec 15 '25 21:12 lordoffools

Tried all the options:

Dynamic Rule: generic Dynamic Rule: datawhores Dynamic Rule: rafa

None of them work.

lordoffools avatar Dec 15 '25 22:12 lordoffools

Switching to dynamic-mode-default: "dc" worked!

Had to try all I could think of before landing on that one.

Is there a canonical list of the different dynamic rules we should have as available options in our config?

lordoffools avatar Dec 15 '25 22:12 lordoffools