TooManyRedirects: Exceeded 30 redirects.
提交 issue 前,请先确认:
- [x] 我已看过 FAQ,此问题不在列表中
- [x] 我已看过其他 issue,他们不能解决我的问题
- [ ] 我认为这不是 Mirai 或者 OpenAI 的 BUG
表现
使用cookiePath运行到此处时会报错

运行环境:
- 操作系统:MacOS(Apple M1 Pro)
- Docker: 无
- 项目版本:0.0.55
复现步骤
描述你是如何触发这个 BUG 的
- 启动时报错
预期行为
正常启动
截图

May use httpx to repalce requests?
httpx support better handling redirection
I've tried to change it tohttpx.Client, it's all like an error Too many redirects
(尝试改成httpx.Client,都是类似报错太多重定向.)
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,避免过多的重定向)
meet same problem
same probiem
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