-
Notifications
You must be signed in to change notification settings - Fork 319
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
Password Change breaks Script #247
Comments
If I can still comment on this, this was USER ISSUE. I found as rouge cookies folder in /home/pi that was causing ALL of my issues. Removed it, everything went back to the way it was, and working as intended. |
Hmm, maybe I need to handle this error in code and give the user a helping message. I'll add this idea as an enhancement. |
That certainly would've made things easier. Spent about 16 hours trying to figure it all out. lol I don't know how the folder ended up there. Once I deleted it, the script fetched new cookies and works just fine. It DID replace that folder with the fresh cookies. I'm not sure if this is a Pi exclusive function or not. So maybe the error could say something like OUTDATED COOKIES IN Path to cookies. |
Describe the bug
So after removing my script from Replit because of security concerns, I switched it over to my Raspberry Pi.
I got everything set up and running flawlessly.
I then changed my password to be cautions because of the Replit situation (see: #245) at which point the script stops functioning.
But it is complicated.
If I CD into the directory that the script is in, and python3 run.py it works just fine.
If I open a terminal and try to python3 the absolute path to the run.py this is now what is happening...
https://i.imgur.com/ajSyvAl.png
pi@raspberrypi:~ $ python3 /home/pi/XXXX-Twitch-Channel-Points-Miner-v2/run.py
16/04 06:58:56 - Console logger time zone set to: America/New_York
16/04 06:58:56 - File logger time zone set to: America/New_York
16/04 06:58:56 - Twitch Channel Points Miner v2-1.8.1 (fork by rdavydov)
16/04 06:58:56 - https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2
16/04 06:58:56 - 💣 Start session: 'OMITTED'
16/04 06:58:56 - 🤓 Loading data for 2 streamers. Please wait...
16/04 06:58:57 - 😢 Streamer OMITTED does not exist
16/04 06:58:58 - 😢 Streamer OMITTED does not exist
16/04 06:58:58 - error from callback <function WebSocketsPool.on_message at 0xb57c9270>: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': 'GYRsCgR3RpS2b3mjH77oWP9iwcp2TX'}
16/04 06:58:58 - #0 - WebSocket error: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': 'GYRsCgR3RpS2b3mjH77oWP9iwcp2TX'}
The string of characters at the end of the ERR_BADAUTH changes each time.
From what I can tell this has to do with 2FA and something to do with 0auth tokens and cookies?
I have tried the following to fix this issue:
Remade my run.py from scratch
Completely deleted and reinstalled the script
Set the script up on Windows to generate a cookie file there and moved it to the Pi
Removed 2FA
So I am now out of ideas as to why this is suddenly happening after a password change.
Steps to reproduce
See above
Expected behavior
The script should work... It works fine from the directory, but an absolute path does not.
Operating system
Raspberry Pi
Python version
3.8 I think, deff 3.X
Miner version
1.8.1
Other relevant software versions
No response
Logs
None - See Above - If needed I'll try to get one. I tried to get one before posting, but it won't even generate a log file on Pi, so I'm not sure how to get one.
Yes I followed the above instructions to try and get a file.
Additional context
No response
The text was updated successfully, but these errors were encountered: