Giter Site home page Giter Site logo

Comments (8)

linweiyuan avatar linweiyuan commented on August 19, 2024

装个 curl 试试

from go-chatgpt-api.

littlepese avatar littlepese commented on August 19, 2024

用 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.

littlepese avatar littlepese commented on August 19, 2024

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.

linweiyuan avatar linweiyuan commented on August 19, 2024

有点奇怪,今晚看看

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on August 19, 2024

无法复现

from go-chatgpt-api.

littlepese avatar littlepese commented on August 19, 2024

发现问题了,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.

linweiyuan avatar linweiyuan commented on August 19, 2024

为何我试不出来

from go-chatgpt-api.

littlepese avatar littlepese commented on August 19, 2024

我的是国内的机器,网络完全不能翻墙,代理是通过 clash 搭的。不知道什么情况。

from go-chatgpt-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.