binary-husky/gpt_academic · error · RuntimeError
不能加载Newbing组件,请注意Newbing组件已不再维护。
Error message
不能加载Newbing组件,请注意Newbing组件已不再维护。
What it means
Raised in the NewBing loader thread when NewbingChatbot(proxy=self.proxies_https, cookies=cookies) constructor throws. The thread marks failure, sends '[Local Message] 不能加载Newbing组件,请注意Newbing组件已不再维护。' plus the formatted traceback to the parent, then raises RuntimeError with that message. The component is explicitly unmaintained.
Source
Thrown at request_llms/bridge_newbingfree.py:165
self.child.send("[Fail]")
self.child.send("[Finish]")
raise RuntimeError(f"NEWBING_COOKIES未填写或有格式错误。")
else:
cookies = None
try:
self.newbing_model = NewbingChatbot(
proxy=self.proxies_https, cookies=cookies
)
except:
self.success = False
tb_str = "\n```\n" + trimmed_format_exc() + "\n```\n"
self.child.send(
f"[Local Message] 不能加载Newbing组件,请注意Newbing组件已不再维护。{tb_str}"
)
self.child.send("[Fail]")
self.child.send("[Finish]")
raise RuntimeError(f"不能加载Newbing组件,请注意Newbing组件已不再维护。")
self.success = True
try:
# 进入任务等待状态
asyncio.run(self.async_run())
except Exception:
tb_str = "\n```\n" + trimmed_format_exc() + "\n```\n"
self.child.send(
f"[Local Message] Newbing 请求失败,报错信息如下. 如果是与网络相关的问题,建议更换代理协议(推荐http)或代理节点 {tb_str}."
)
self.child.send("[Fail]")
self.child.send("[Finish]")
def stream_chat(self, **kwargs):
"""
这个函数运行在主进程
"""
self.threadLock.acquire() # 获取线程锁View on GitHub (pinned to d6bde0fa54)
Solutions
- Read the tb_str traceback sent to the parent UI/logs — it identifies the exact constructor failure.
- Fix or disable USE_PROXY (ensure proxies_https is a valid URL or None).
- Reinstall the newbing client's dependencies as pinned by the project.
- Accept that NewBing support is archived: switch to a maintained LLM backend (GPT/Gemini/Slack/Kimi etc.) instead of repairing it.
Defensive patterns
Strategy: fallback
Validate before calling
def newbing_client_importable() -> bool:
try:
from request_llms.newbing_free import NewbingChatbot # adjust to actual module
return True
except Exception:
return False Try / catch
try:
handle = NewBingHandle()
except RuntimeError as e:
if '不能加载Newbing组件' in str(e):
switch_to_maintained_backend() # component is archived Prevention
- Treat NewBing as deprecated; prefer maintained backends
- Validate USE_PROXY URLs (scheme://host:port) before use
- Pin and reinstall the newbing client deps if you must use it
When it happens
Trigger: Constructing the NewBing chatbot client fails — missing/broken dependencies of the bundled newbing client code, an invalid proxy URL in USE_PROXY/config, or cookie-related constructor errors from upstream API/protocol changes (Sydney/Edge endpoints have changed since maintenance stopped).
Common situations: Trying to use the free NewBing backend after Microsoft changed/locked the endpoints, missing curl-cffi/EdgeGPT-style deps, malformed proxy string, or the cookies from error 136 path being passed through.
Related errors
AI-assisted analysis of binary-husky/gpt_academic@d6bde0fa54 (2026-08-14).
Data as JSON: /api/errors/904b3856f4905e68.
Report an issue: GitHub.