Python: BrowserTrackerID is missing or invalid

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I want to change “Who can make me a member of their private server?” privacy setting to friends using python.

  2. What is the issue?
    I am getting error privateServerInvitePrivacy: Request Context BrowserTrackerID is missing or invalid. (Parameter ‘BrowserTrackerID’).

with requests.session() as session:
    session.cookies[".ROBLOSECURITY"] = cookie
    header = session.post("https://catalog.roblox.com/")
    session.headers["X-CSRF-TOKEN"] = header.headers["X-CSRF-TOKEN"]
    session.headers["Origin"] = "https://www.roblox.com/"

payload = {"privateServerInvitePrivacy": "Friends"}
r = session.post(
    "https://apis.roblox.com/user-settings-api/v1/user-settings", json=payload)
print(f"privateServerInvitePrivacy: {r.json()}")

it keeps giving me this error BrowserTrackerID is missing and im not sure what a BrowserTrackerID is.

2 Likes