maxduke / go-chatgpt-api

一个尝试绕过 Cloudflare 来使用 ChatGPT 接口的程序
MIT License
141 stars 33 forks source link

/backend-api/sentinel/chat-requirements 返沪格式html不是json #67

Closed hardywu closed 1 month ago

hardywu commented 1 month ago

api.go 里的 CheckRequire函数 ···go err = json.NewDecoder(response.Body).Decode(&require) ··· response.Body is html格式,json 解析错误。

用了几天都正常,今天开始出错。

maxduke commented 1 month ago

api.go 里的 CheckRequire函数 ···go err = json.NewDecoder(response.Body).Decode(&require) ··· response.Body is html格式,json 解析错误。

用了几天都正常,今天开始出错。

刚试了没问了,看看ip是不是出盾了

hardywu commented 1 month ago

@maxduke 确实是。网络走了ipv6 (因为是ipv6 tunnel,所以被盾)...。我强制 /etc/hosts 固定ipv4 就好了。