ChatGPT
ChatGPT copied to clipboard
Failed to Refresh Session
Upon using the "python3 -m revChatGPT" command I get the following response: Logging in... Spawning browser... Browser spawned. Found Cloudflare Cookie! Failed to refresh session! Failed to refresh session! Failed to refresh session!
With the "failed to refresh session!" repeating infinitely.
Output --debug results in the same output
I am getting the same. Although, it is my first time using this.
Yup, started to see this, as well. Probably a new CF protection I've seen on my other app
Happening occasionally for me as well. Not sure what the exact cause is as it is inconsistent.
+1 happening consistently for me today after 3 days of uptime without issue. Have tried clearing browser cache and re-initiating the session several times.
Seeing this too. Has anyone solved this problem?
Hmm I think I know whats causing this. the session refresh call generates a new session token and expires the previous one, but its hard to grab the real session token since the website constantly refreshes the token. If the session token is not real, it cant refresh the token
I think you might need to close the site the moment you get your session token to prevent it from refreshing outside of revChatGPT
Seeing this too. Has anyone solved this problem?
@acheong08 I tried what you suggested a few times, the moment I see "cookie found" I close the browser and the issue persists. Good thought though. Have you had success with this strategy? Is it perhaps just precise timing?
It very rarely happens to me and trying a few times usually gets things working. The reason I haven't fixed this is because I have no way of debugging something that only happens to myself 1% of the time.
I really need some help with debugging cases where I can't replicate
Sure, I'm interested in helping you sort this out, just let me know what kind of info you'd need. Started to happen to me 100% of times a few days ago
Not sure how helpful this is @acheong08 but here is a screencapture of my experience: https://mediacutlet.com/git/132023.mp4
Not sure how helpful this is @acheong08 but here is a screencapture of my experience: mediacutlet.com/git/132023.mp4
Why are you trying to log in manually? Do not click the buttons. If you want to log in, you must use config.json to specify your email and password
Sure, I'm interested in helping you sort this out, just let me know what kind of info you'd need. Started to happen to me 100% of times a few days ago
Can you tweak the code to show response codes and response text?
Need to know if it's a cloudflare 403 or OpenAI 404 or something else entirely
Not sure how helpful this is @acheong08 but here is a screencapture of my experience: mediacutlet.com/git/132023.mp4
Why are you trying to log in manually? Do not click the buttons. If you want to log in, you must use
config.jsonto specify your email and password
I use Google to authenticate, no password; I'll create another account using email and password and try again. Even if nothing is clicked, the issue exists. I'll tweak to print response codes and do another recording.
Google is not supported at the moment. If you try to use Google, everything will fail. You can use session tokens instead which you can obtain if you are logged in via Google. Check the https://github.com/acheong08/ChatGPT/wiki/Setup for instructions on how to get that
It seems that the issue here is that you did not provide a session token
Google is not supported at the moment. If you try to use Google, everything will fail. You can use session tokens instead which you can obtain if you are logged in via Google. Check the https://github.com/acheong08/ChatGPT/wiki/Setup for instructions on how to get that
This is how I have it set up. Perhaps the token expired an I need to generate a new one manually?
Yes. You have to update the session token every now and then
Yes. You have to update the session token every now and then
Got it. Makes sense. Hope this helps others as well. Thanks for your work on this!!
Still waiting for the refresh thing to happen
Not sure what's going on. Im not getting anywhere:
[2023-01-03 15:09:48,259] WARNING {connectionpool.py:812} Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fecfc3ed870>: Failed to establish a new connection: [Errno 111] Connection refused')': /session/90c7f1d037c40ef347fca60faeb9f68d/se/log
I'll come back here with an update later today when I figure this out.
It appears that in my case the issue was that I tried to run multiple instances of ChatGPTrev clients (2). Both of those were via session_tokens. If I only run one at a time, it seem to work
Manually updating my session token in config.json fixed my issue.
The same error happened to me. Obtaining a session token from Chrome's incognito window fixed it.
I'm running it using an email + password config with 2captcha and for me, the session token failed to refresh after a day of running it constantly
That is currently a flaw. I need to check for outdated tokens and log in again via status codes. Anyone know the status code or expired tokens?
It should be a simple matter of
if response.status_code == <status code>:
self.config["session_token"] = None
self.email_login()
something like that (assuming email/password set)