Closed coooool123 closed 6 years ago
Make sure passport-steam
is version 1.0.9
.
Connection refused means the script is not running and/or crashed.
Login loop is caused by passport-steam
not being up-to-date.
How exactly can I know the version and update it? It wasn't in the guide, I don't want to screw everything up again
Inside script directory: cat node_modules/passport-steam/package.json | grep version
It says https://gyazo.com/b424234506aacff7aaa39e8104b074d4 so I'm assuming i'm already up-to-date with it
Did you launch the script using pm2
?
pm2 logs 0
and paste the outputNot sure how to do that - Would it be pm2 [the code you gave me above]
?
pm2 logs 0
So pm2 logs 0
and then I paste the code above correct? Sorry if I'm a hassle I'm trying to get used and learn this kind of stuff
The output of that command.
https://gyazo.com/f2af5d3e5313896b9a205c3d6c610dfe This was the output - I don't see anything related to the version within this output
Create a folder called polls
, inside that folder create a file called bot_1.json
, inside that file put {}
.
After you've done that, restart the script with this command: pm2 restart 0
Email me your config.js
file contents, remove only the bot username, password and its secrets if there's more errors. (hello@pepzwee.com)
Do I create the folder within the directory you gave to me?
You create the folder where the script files are (config, index etc..).
I sen't you the email
You don't have SSL and Steam is trying to return to https:// after logging in. That's why it's not working. Even though you have http://
in the config.js
file, it's trying to redirect back to https
.
I'm unsure if it's because of passport-steam
or not. Easiest fix would be to add SSL. I suggest doing it with Cloudflare since it's the easiest way for you.
I'll be trying it out and let you know the update! Thanks
I now have the SSL but now it doesn't show the ERROR... connection issue thing which is good, instead, now it shows the SSL certification error in console like last time and still won't redirect back to the sites page again.
So, do you have a solution? This is quite frustrating for myself lol
I've had about 4 issues already and I've followed the tutorial to a T and I'm pretty sure I didn't miss-do anything at all but I feel as if there are errors alongside the code itself that should be updated.
Anyhow I have a new issue which is still not redirecting me back to the site but now I get this error message when I try to login now: "ERR_CONNECTION_REFUSED" saying it refuses to connect or it'll be just like my last post and just constantly redirect me back to the login page and not go back to the site as it should so now I have 2 issues since the last one wasn't solved STILL.