Hey!
I’m making a group ranking bot, and similar to this post the ROBLOSECURITY cookie keeps resetting before I can actually use it in my bot. I’m using Noblox.js (4.15.1) to handle ranking requests.
Methods I’ve tried: (All unsuccessful)
- Retrieving the cookie in an incognito window, then closing the tab then running my bot.
- Retrieving the cookie in an incognito window, then running the bot and not closing it.
- Retrieving the cookie in an incognito window, then logging out then running my bot.
I’ve also attempted all of the above in regular windows too, with VPNs and everything.
Also, in the post mentioned above, someone replied with a solution involving a cookie extension, tried their method and the cookie was also invalid.
I either get one of two errors when I run the bot:
Error: Cannot get CSRF: You are not logged in.
or
Failed to validate cookie: Are you sure the cookie is valid?
I’ve learned that the first error happens when the cookie may be valid but there may be an error in the code, however this can’t be as I’m using a slightly altered version of Noblox’s quickstart code snippet in their documentation, and the second occurs when it isn’t valid.
This is written in Node.js:
async function startRanker() {
try {
const currentUser = await noblox.setCookie(cookie);
console.log("Successfully logged in as ", currentUser.UserName);
} catch (error) {
console.error("Failed: ", error);
}
}
startRanker();
Any help would be appreciated!