xqdoo00o / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.
708 stars 134 forks source link

报错:Details, Failed to get CSRF token. #35

Closed linkedlist771 closed 7 months ago

linkedlist771 commented 8 months ago

你好,在本地编译您的项目的时候出现了如下报错:

Details: Failed to get CSRF token.

启动命令:

go build && ./freechatgpt

输出内容(账号信息已经处理):

success read chat arkose
success read chat arkose
Updating access token for mi*****
Updating access token for !o***   # 这里是我print输出来查看有没有读取到密码的 
proxy_url
Location: begin
Status code: 0
Details: Failed to get CSRF token.
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /ping                     --> main.main.func1 (4 handlers)
[GIN-debug] PATCH  /admin/password           --> main.passwordHandler (5 handlers)
[GIN-debug] PATCH  /admin/tokens             --> main.tokensHandler (5 handlers)
[GIN-debug] OPTIONS /v1/chat/completions      --> main.optionsHandler (4 handlers)
[GIN-debug] POST   /v1/chat/completions      --> main.nightmare (5 handlers)
[GIN-debug] GET    /v1/models                --> main.simulateModel (5 handlers)
2024/04/03 04:13:51 2478046 127.0.0.1:8080
xqdoo00o commented 8 months ago

是否有proxies.txt,存放代理地址?

linkedlist771 commented 8 months ago

使用的是国外的VPS直接进行登录的。 应该不存在代理的问题。

xqdoo00o commented 8 months ago

国外vps是否支持chatgpt网页版登录