EdgeGPT icon indicating copy to clipboard operation
EdgeGPT copied to clipboard

TooManyRedirects: Exceeded 30 redirects.

Open DrgZong opened this issue 3 years ago • 3 comments

提交 issue 前,请先确认:

  • [x] 我已看过 FAQ,此问题不在列表中
  • [x] 我已看过其他 issue,他们不能解决我的问题
  • [ ] 我认为这不是 Mirai 或者 OpenAI 的 BUG

表现
使用cookiePath运行到此处时会报错 image

运行环境:

  • 操作系统:MacOS(Apple M1 Pro)
  • Docker: 无
  • 项目版本:0.0.55

复现步骤
描述你是如何触发这个 BUG 的

  1. 启动时报错

预期行为
正常启动

截图
image

DrgZong avatar Mar 06 '23 11:03 DrgZong

May use httpx to repalce requests?

httpx support better handling redirection

Harry-Jing avatar Mar 06 '23 14:03 Harry-Jing

I've tried to change it tohttpx.Client, it's all like an error Too many redirects (尝试改成httpx.Client,都是类似报错太多重定向.)

Cvandia avatar Mar 06 '23 14:03 Cvandia

I tried a solution myself: clear the browser's cookies about visiting bing.com, get new cookies, and avoid excessive redirects(我自己尝试了一种方案:清除浏览器关于访问bing.com的cookie,获得到新的cookie,避免过多的重定向)

Cvandia avatar Mar 11 '23 03:03 Cvandia

meet same problem

cx9208 avatar Mar 13 '23 07:03 cx9208

same probiem

wangmw3617 avatar Mar 13 '23 08:03 wangmw3617

I use httpx to solve this problem https://github.com/Harry-Jing/nonebot-plugin-bing-chat/blob/main/nonebot_plugin_bing_chat/common/bing.py and headers is different form websocket connection

Harry-Jing avatar Mar 13 '23 09:03 Harry-Jing