Comments (8)
装个 curl 试试
from go-chatgpt-api.
用 curl 直接访问是没问题的
curl -X post -x socks5://127.0.0.1:1086 https://tcr9i.chat.openai.com/fc/gt2/public_key/35536E1E-65B4-4D96-9D97-6ADB7EFF8147
<title>400 Bad Request</title>400 Bad Request
cloudflare
from go-chatgpt-api.
post 忘了大写了,重新贴一下,curl 访问不会出现超时
curl -X POST -x socks5://127.0.0.1:1086 -I https://tcr9i.chat.openai.com/fc/gt2/public_key/35536E1E-65B4-4D96-9D97-6ADB7EFF8147
HTTP/2 400
date: Thu, 12 Oct 2023 01:19:42 GMT
content-length: 0
cf-ray: 814b84223fa6c17d-ICN
cf-cache-status: DYNAMIC
access-control-allow-origin: *
strict-transport-security: max-age=31536000; includeSubDomains
content-security-policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' cdn.funcaptcha.com cdn.arkoselabs.com data:; media-src 'self' data:; connect-src 'self'
hackers: www.arkoselabs.com/whitehat/
referrer-policy: strict-origin-when-cross-origin
sregion: ap-southeast-1
version: 2.0
x-content-type-options: nosniff
x-envoy-upstream-service-time: 3
x-xss-protection: 1; mode=block
set-cookie: _cfuvid=pX4kXWsG6cjP9qNOBZH0sMks.HmMqw3CqWkwIytSlyM-1697073582526-0-604800000; path=/; domain=.tcr9i.chat.openai.com; HttpOnly; Secure; SameSite=None
server: cloudflare
alt-svc: h3=":443"; ma=86400
from go-chatgpt-api.
有点奇怪,今晚看看
from go-chatgpt-api.
无法复现
from go-chatgpt-api.
发现问题了,PROXY这个变量不行,多加一个 http_proxy 的变量就行了
贴下配置
go-chatgpt-api2:
container_name: go-chatgpt-api2
image: linweiyuan/go-chatgpt-api:latest
ports:
- 2489:8080
environment:
- TZ=Asia/Shanghai
- PROXY=socks5://172.17.0.1:1086
- GIN_MODE=release
- http_proxy=socks5://172.17.0.1:1086
volumes:
- ./arkoselabs_token_api/chat.openai.com.har:/app/chat.openai.com.har
restart: unless-stopped
from go-chatgpt-api.
为何我试不出来
from go-chatgpt-api.
我的是国内的机器,网络完全不能翻墙,代理是通过 clash 搭的。不知道什么情况。
from go-chatgpt-api.
Related Issues (20)
- go-chatgpt-api 不向 ARKOSE_TOKEN_URL 发送请求就返回 Failed to get arkose token. HOT 1
- 可以在docker-compose里使用账号密码组来让他自动获取token吗? HOT 2
- chatgpt-proxy-server-warp 这个源代码为啥隐藏? HOT 6
- 和潘多拉联动的话,key还需要吗? HOT 2
- failed to start HOT 10
- refreshPuidErrorMessage HOT 2
- Post "https://chat.openai.com/backend-api/conversation": unexpected EOF HOT 1
- platform/login err HOT 7
- 更新了最新的镜像版本,还是报错nil和403 HOT 6
- 登录获取access token似乎还是有问题 HOT 2
- Latest Image does not locate .har file HOT 1
- 不支持vercel吗 HOT 1
- 大神回复真快 HOT 10
- 这个怎么使用,我点了render按钮。部署成功后返回service go-chatgpt-api is ready信息。 HOT 1
- 最新版镜像报错422,"none is not an allowed value" HOT 1
- 提问后拿不到结果 HOT 4
- chatgpt login err HOT 10
- AccessToken 和 模拟 apiKey 下的报错问题 HOT 3
- 如何模拟 https://api.openai.com/v1/models接口呢 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-chatgpt-api.