Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie not refreshing properly #13

Closed
toast80e opened this issue May 24, 2021 · 7 comments
Closed

Cookie not refreshing properly #13

toast80e opened this issue May 24, 2021 · 7 comments

Comments

@toast80e
Copy link

Hi,
I've recently installed this API onto a VPS for myself to listen for promotion requests. The system works fine after I input my cookie for about 12 hours, but afterwards it seems to refresh the cookie or something and that breaks the server, with the only way for me to fix it being grabbing an entire new cookie from the Roblox website. This is not preferable. I am currently using an incognito window to grab the cookie from my bot account, so no secondary logins or anything should be happening. Here's some screenshots of my dilemma.

Logging in initially:
V0i3olAJ42

It handles promotions for a few hours, then randomly breaks:
CNAIvo3DBJ

I need a new cookie:
U6WNTHRZKb

@suufi
Copy link
Member

suufi commented May 25, 2021

How are you running the bot on your server? Are you using node server.js to keep the process running or pm2 start?

@toast80e
Copy link
Author

I am using a screen instance on my ubuntu machine to keep it running, using node server.js. In the final screenshot you can see an example of my setup running. The first time I ran node server.js to start the program, it works fine off that for a few hours, but then I need to go back in to the screen instance and restart it with a new cookie, even though the process is still running persistently. Should I try to install the specific software you recommended to see if that makes any difference?

@suufi
Copy link
Member

suufi commented May 26, 2021

You can definitely try, but it seems like a problem with your setup. I'm currently running an instance of this and have been doing so for several days. I tried a random POST method that requires authentication and it worked fine for me. Once you get the cookie from Incognito mode, you should try going ahead and closing that Incognito window.

@toast80e
Copy link
Author

Yeah I close it immediately after copying the cookie before even running any code. I'll try using the process manager you recommended and see if that improves the situation. Thank you for the responses!

@toast80e
Copy link
Author

Hi, it appears the same behavior is occurring with the process manager you recommended. Here's a screenshot of my promotion failing to complete this morning.
gBro4kwWSN
I'm out of ideas. :(

@toast80e
Copy link
Author

Hi, small update on the ongoing problem. It appears it isn't just tied to my VPS. I've been able to reproduce the same issue by cloning the repository to glitch.com and setting it all up there. Here's a screenshot.
rH4DtL51MZ
Something that I find odd about this is that I have another API running to create developer products, and it appears to use noblox.js as a means to interact with Roblox as well. That one has been working properly for a couple weeks now. Is it possible these two APIs would somehow conflict with each other, since they are coming from the same account? Here's a link to the repo: https://github.com/GeneralScripter/Custom-Developer-Products
I'll try using a separate account and seeing if that solves anything.

@toast80e
Copy link
Author

toast80e commented Jun 1, 2021

It seems using a separate account for each API was the solution, for whatever reason. Thank you for your replies!

@toast80e toast80e closed this as completed Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants