{"record":{"id":"904b3856f4905e68","repo":"binary-husky/gpt_academic","slug":"newbing-newbing","errorCode":null,"errorMessage":"不能加载Newbing组件，请注意Newbing组件已不再维护。","messagePattern":"不能加载Newbing组件，请注意Newbing组件已不再维护。","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"request_llms/bridge_newbingfree.py","lineNumber":165,"sourceCode":"                    self.child.send(\"[Fail]\")\n                    self.child.send(\"[Finish]\")\n                    raise RuntimeError(f\"NEWBING_COOKIES未填写或有格式错误。\")\n            else:\n                cookies = None\n\n            try:\n                self.newbing_model = NewbingChatbot(\n                    proxy=self.proxies_https, cookies=cookies\n                )\n            except:\n                self.success = False\n                tb_str = \"\\n```\\n\" + trimmed_format_exc() + \"\\n```\\n\"\n                self.child.send(\n                    f\"[Local Message] 不能加载Newbing组件，请注意Newbing组件已不再维护。{tb_str}\"\n                )\n                self.child.send(\"[Fail]\")\n                self.child.send(\"[Finish]\")\n                raise RuntimeError(f\"不能加载Newbing组件，请注意Newbing组件已不再维护。\")\n\n        self.success = True\n        try:\n            # 进入任务等待状态\n            asyncio.run(self.async_run())\n        except Exception:\n            tb_str = \"\\n```\\n\" + trimmed_format_exc() + \"\\n```\\n\"\n            self.child.send(\n                f\"[Local Message] Newbing 请求失败，报错信息如下. 如果是与网络相关的问题，建议更换代理协议（推荐http）或代理节点 {tb_str}.\"\n            )\n            self.child.send(\"[Fail]\")\n            self.child.send(\"[Finish]\")\n\n    def stream_chat(self, **kwargs):\n        \"\"\"\n        这个函数运行在主进程\n        \"\"\"\n        self.threadLock.acquire()  # 获取线程锁","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/binary-husky/gpt_academic/blob/d6bde0fa54373309bd05823a49bda8da019d2c77/request_llms/bridge_newbingfree.py#L147-L183","documentation":"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.","triggerScenarios":"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).","commonSituations":"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.","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."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"def newbing_client_importable() -> bool:\n    try:\n        from request_llms.newbing_free import NewbingChatbot  # adjust to actual module\n        return True\n    except Exception:\n        return False","typeGuard":null,"tryCatchPattern":"try:\n    handle = NewBingHandle()\nexcept RuntimeError as e:\n    if '不能加载Newbing组件' in str(e):\n        switch_to_maintained_backend()  # component is archived","preventionTips":["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"],"tags":["newbing","proxy","dependencies","deprecated","startup"],"backgroundTag":null,"analyzedSha":"d6bde0fa54373309bd05823a49bda8da019d2c77","analyzedAt":"2026-08-14T22:48:35.038Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}