acheong08 / ChatGPTProxy

Simple Cloudflare bypass for ChatGPT
The Unlicense
1.33k stars 325 forks source link

403错误 #39

Closed xiaoguaishou92 closed 1 year ago

xiaoguaishou92 commented 1 year ago

部署完成后报403,是不是因为部署这个代理服务的机器被墙了。大家有啥可以用的云机推荐么

flyingzhang commented 1 year ago

seems now requests with puid cookies needs cf_clearance cookie too. need some solutions to get/refresh cf_clearance.

acheong08 commented 1 year ago

It doesn't. You just need to ensure you put PUID and PUID is valid

acheong08 commented 1 year ago

Remember to update PUID every few days

flyingzhang commented 1 year ago

Remember to update PUID every few days

I updated the PUID fetched from browser, but on my aws ECS instance in US I still got 403 with CF 1020 error. I have tried to emulate a request with curl including a valid cf_clearance cookie, that successed.

acheong08 commented 1 year ago

Assuming access token not set. If access token set, remember to refresh every 2 weeks

acheong08 commented 1 year ago

If you only put access token and not PUID, it will throw error if IP blocked

flyingzhang commented 1 year ago

Assuming access token not set. If access token set, remember to refresh every 2 weeks

That's it. I have an expired ACCESS_TOKEN :( But after all ACCESS_TOKEN & PUID updated, now I can have puid update automatically. But the later requests still failed with 401 error. Logs come like this, but my account works fine with browser.

[GIN] 2023/04/11 - 13:46:56 | 401 | 120.666374ms | 172.17.0.3 | GET "/api/conversations?offset=0&limit=20"