acheong08 / EdgeGPT

Reverse engineered API of Microsoft's Bing Chat AI
The Unlicense
8.09k stars 913 forks source link

Status code: 502 #558

Open xhzth7091 opened 1 year ago

xhzth7091 commented 1 year ago

Is there an existing issue for this?

What happened?

我cookie的文件重新拿 最新的还是这个问题,代码以前可以正常聊天,今天版本EdgeGPT-0.6.9和0.8.1,都是这个问题,我bing.chat可以正常访问,
我最开始以为是WebSocket 代理的问题,windows电脑,我设置了端口还是同样的问题 set http_proxy=http://127.0.0.1:7890 set https_proxy=http://127.0.0.1:7890 set all_proxy=http://127.0.0.1:7890

Status code: 502 <!DOCTYPE html>

edge.churchless.tech | 502: Bad gateway

Bad gateway Error code 502

Visit cloudflare.com for more information.
2023-06-19 10:16:30 UTC
You

Browser

Working
London

Cloudflare

Working
edge.churchless.tech

Host

Error

What happened?

The web server reported a bad gateway error.

What can I do?

Please try again in a few minutes.

Steps to reproduce the problem

python -m EdgeGPT --cookie-file cookie

What should have happened?

正常 访问到wss://sydney.bing.com/sydney/ChatHub,正常聊天

Version where the problem happens

版本EdgeGPT-0.6.9和0.8.1

What Python version are you running this with?

No response

What is your operating system ?

No response

Command Line Arguments

Python 3.10.9

Console logs

Status code: 502

Additional information

No response

mzs0207 commented 1 year ago

我也遇到这个问题

xbzstudio commented 1 year ago

同问。我现在正在被这个问题困扰着,我的客户端继续解决这个问题。

Nu11Const commented 1 year ago

在国外服务器上部署https://github.com/acheong08/EdgeGPT-Proxy export BING_PROXY_URL=https://你的服务器地址/edgesvc/turing/conversation/create

xhzth7091 commented 1 year ago

BING_PROXY_URL Clash for Windows 开启了系统代理,然后在终端设置 set http_proxy=http://127.0.0.1:7890/ set https_proxy=http://127.0.0.1:7890/ set all_proxy=http://127.0.0.1:7890/

v2rayN 开启了系统代理 set http_proxy=http://127.0.0.1:10809/ set https_proxy=http://127.0.0.1:10809/ set all_proxy=http://127.0.0.1:10809/

网页能正常访问 https://www.bing.com/chat , 现在不能直接翻墙访问了吗? 必须要部署到国外服务器上?

Nu11Const commented 1 year ago

BING_PROXY_URL Clash for Windows 开启了系统代理,然后在终端设置 set http_proxy=http://127.0.0.1:7890/ set https_proxy=http://127.0.0.1:7890/ set all_proxy=http://127.0.0.1:7890/

v2rayN 开启了系统代理 set http_proxy=http://127.0.0.1:10809/ set https_proxy=http://127.0.0.1:10809/ set all_proxy=http://127.0.0.1:10809/

网页能正常访问 https://www.bing.com/chat , 现在不能直接翻墙访问了吗? 必须要部署到国外服务器上?

那也可以这样 export BING_PROXY_URL=https://edgeservices.bing.com/edgesvc/turing/conversation/create

xhzth7091 commented 1 year ago

BING_PROXY_URL Clash for Windows 开启了系统代理,然后在终端设置 set http_proxy=http://127.0.0.1:7890/ set https_proxy=http://127.0.0.1:7890/ set all_proxy=http://127.0.0.1:7890/

v2rayN 开启了系统代理 set http_proxy=http://127.0.0.1:10809/ set https_proxy=http://127.0.0.1:10809/ set all_proxy=http://127.0.0.1:10809/ 网页能正常访问 https://www.bing.com/chat , 现在不能直接翻墙访问了吗? 必须要部署到国外服务器上?

那也可以这样 export BING_PROXY_URL=https://edgeservices.bing.com/edgesvc/turing/conversation/create

加了export BING_PROXY_URL=https://edgeservices.bing.com/edgesvc/turing/conversation/create 这个还是会502, 但是我把浏览器的cookie清除了以后,在用浏览器去打开https://edgeservices.bing.com/edgesvc/turing/conversation/create,可以获取到conversationId,我看了一下请求表头没有cookie, 然后直接用postman 来get 和post请求 https://edgeservices.bing.com/edgesvc/turing/conversation/create

是没有返回数据的