adamlui / chatgpt-auto-refresh

↻ Keeps ChatGPT sessions fresh to avoid network errors + Cloudflare checks
https://chatgptautorefresh.com
Other
187 stars 13 forks source link

Hello author, I am using the latest version, Chrome browser version 112.0.5615.86, and the script is not working properly, the console reports an error as shown below #7

Closed NoahXcl closed 1 year ago

NoahXcl commented 1 year ago

image

NoahXcl commented 1 year ago

The chatGPTsessURL address defined in your script is accessible to me directly through my browser, with a return code of 200

NoahXcl commented 1 year ago

It has been solved, my solution is to change the GET request to a POST request for the corresponding 176 lines of code, but it will return a 400 error code, but it does not seem to affect the use.

adamlui commented 1 year ago

@NoahXcl How long did you test and it works now? Also how long was previous test before it fails?

NoahXcl commented 1 year ago

I used this script for the first time today and found that the console kept returning 403, so I visited the sessURL in a separate browser and found that it worked and the request method was POST, and after changing the refresh time to 30s I tested it and now it returns 400 but it works fine. By the way, there is a small problem, the default matching URL has been changed from https://chat.openai.com/chat to https://chat.openai.com/c/

adamlui commented 1 year ago

I have implemented changes based on your observation: the interval is now 30s, the match removed the /chat and request method is POST now (so you can update script or even enable auto-update in your userscript manager settings and future updates which may be useful will also apply)