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

TooManyRedirects: Exceeded 30 redirects. #113

Closed
2 of 3 tasks
DrgZong opened this issue Mar 6, 2023 · 6 comments
Closed
2 of 3 tasks

TooManyRedirects: Exceeded 30 redirects. #113

DrgZong opened this issue Mar 6, 2023 · 6 comments

Comments

@DrgZong
Copy link

DrgZong commented Mar 6, 2023

提交 issue 前,请先确认:

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

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

运行环境:

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

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

  1. 启动时报错

预期行为
正常启动

截图
image

@Harry-Jing
Copy link
Contributor

May use httpx to repalce requests?

httpx support better handling redirection

@Cvandia
Copy link

Cvandia commented Mar 6, 2023

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

@Cvandia
Copy link

Cvandia commented Mar 11, 2023

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,避免过多的重定向)

@cx9208
Copy link

cx9208 commented Mar 13, 2023

meet same problem

@wangmw3617
Copy link

same probiem

@Harry-Jing
Copy link
Contributor

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

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

5 participants