Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Status code: 502 #558

Open
1 task done
xhzth7091 opened this issue Jun 19, 2023 · 6 comments
Open
1 task done

Status code: 502 #558

xhzth7091 opened this issue Jun 19, 2023 · 6 comments

Comments

@xhzth7091
Copy link

xhzth7091 commented Jun 19, 2023

Is there an existing issue for this?

  • 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

<title>edge.churchless.tech | 502: Bad gateway</title>
<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>
You

Browser

Working
London

Cloudflare

Working
<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>
edge.churchless.tech

Host

Error
        </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">

Cloudflare Ray ID: 7d9b04518d660890 Your IP: Click to reveal 125.71.132.177 Performance & security by Cloudflare

<script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>

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
Copy link

mzs0207 commented Jun 19, 2023

我也遇到这个问题

@xbzstudio
Copy link

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

@VMTask
Copy link
Contributor

VMTask commented Jun 20, 2023

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

@xhzth7091
Copy link
Author

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 ,
现在不能直接翻墙访问了吗? 必须要部署到国外服务器上?

@VMTask
Copy link
Contributor

VMTask commented Jun 20, 2023

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
Copy link
Author

xhzth7091 commented Jun 21, 2023

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

是没有返回数据的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants