adamlui / chatgpt-auto-refresh

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

Doesn't work on latest Chromium version #6

Closed halvabner closed 1 year ago

halvabner commented 1 year ago

Browser: Chromium 109.0.5414.119 Arch Linux Userscript: version 2023.04.06 Userscript Manager: Tampermonkey 4.18.1

lastprint

Let me know if you need more logs / debug info

Cupcc commented 1 year ago

+1 the same as you

adamlui commented 1 year ago

@halvabner @Cupcc I replaced the method from GET to POST per @NoahXcl's solution in #7 can you tell me if it works now?

halvabner commented 1 year ago

@adamlui I updated and tested but it still doesn't work. This is a screenshot of what happens in the console when I try to use the chat after a period of idling: image

However I noticed something that might be related? It never stops sending the requests. But I noticed that at some point in time (notice the timestamps) there's an error saying something about cloudflare. Could it be that cloudflare expires the session without caring that we're sending POST requests?

This is a screenshot of when something goes wrong (I think?): image

adamlui commented 1 year ago

@halvabner can you update the script to the latest version that sends requests every 30s? (two users reported that fixes the issue)

halvabner commented 1 year ago

@adamlui i tried with 30s. Still doesn't work :(

h4ck4t commented 1 year ago

+1 the same as you

Cloudkkk commented 1 year ago

+1 the same as you

adamlui commented 1 year ago

@halvabner @maplepicker I replaced the autorefresh method w/ a headless one I tested to work even after an hour in the latest update!

halvabner commented 1 year ago

@adamlui it looks like it's finally working now :^)

adamlui commented 1 year ago

@halvabner do you think you could leave a review that it works on Greasy Fork? (It was really hard for me to brainstorm/write the solution)

halvabner commented 1 year ago

@adamlui sure