Closed Neztore closed 6 years ago
This may be caused by enabling forever in the http function. After editing that file and removing line 16, does the error still occur?
Error is now emitted for all actions - Removing Line 16 does not fix the issue.
I cannot replicate the error. Running the exact code below works for me, please run it as well and let me know if it works.
var rbx = require('roblox-js');
rbx.login('username', 'password')
.then(function () {
console.log('Logged in');
});
setTimeout(function () {
console.log('Executing');
rbx.getPlayers(2669445, 255).then(console.log);
}, 600000);
Although I am adding login to stay consistent with your issue, the reality is the getPlayers
function does not log in at all. The cookie is not sent with requests because it is not needed and will speed up getting every page.
After further investigation it appears this error is only present on one device which leads me to believe it is not a lib issue. Thanks for your help though.
I login with my account, which has no issues. As I wish to repeat the same action every ten minutes, there is a delay of 10 minutes. When the bot then attempts to getPlayers in my group, it returns a ECONNRESET error. This error is not caused when there is no delay. Full error:
Code:
If this is an issue with my code, I apologise greatly.