EdgeGPT
EdgeGPT copied to clipboard
Status code: 502
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
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
<div id="cf-error-details" class="p-0">
<header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8">
<h1 class="inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2">
<span class="inline-block">Bad gateway</span>
<span class="code-label">Error code 502</span>
</h1>
<div>
Visit <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_502&utm_campaign=edge.churchless.tech" target="_blank" rel="noopener noreferrer">cloudflare.com</a> for more information.
</div>
<div class="mt-3">2023-06-19 10:16:30 UTC</div>
</header>
<div class="my-8 bg-gradient-gray">
<div class="w-240 lg:w-full mx-auto">
<div class="clearfix md:px-8">
<span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span>
<span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
Browser
Working
Browser
<span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span>
<span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
Host
Error
Host
</div>
</div>
<div class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
<div class="clearfix">
<div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed">
<h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2>
<p>The web server reported a bad gateway error.</p>
</div>
<div class="w-1/2 md:w-full float-left leading-relaxed">
<h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2>
<p class="mb-6">Please try again in a few minutes.</p>
</div>
</div>
</div>
<div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
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
我也遇到这个问题
同问。我现在正在被这个问题困扰着,我的客户端继续解决这个问题。
在国外服务器上部署https://github.com/acheong08/EdgeGPT-Proxy
export BING_PROXY_URL=https://你的服务器地址/edgesvc/turing/conversation/create
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 , 现在不能直接翻墙访问了吗? 必须要部署到国外服务器上?
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
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
是没有返回数据的