标签: Python

TypeError: Failed to fetch

TypeError: Failed to fetch

这个报错出现在 LobeHub Desktop(Electron)里修改账号邮箱时,桌面端的 Better Auth 客户端把请求发到了跨域的云端地址,被 CORS 预检拦截,从而抛出 TypeError: Failed to fetch ;同一操作在网页版正常,优先排查桌面端是否为受影响版本,并改

ValueError: not enough values to unpack (expected 2, got 0)`. This crashes whenever a Pydantic `BaseModel` field or any response type is annotated as plain `dict` and the library tries to dese

ValueError: not enough values to unpack (expected 2, got 0)`. This crashes whenever a Pydantic `BaseModel` field or any response type is annotated as plain `dict` and the library tries to dese

这个报错通常出现在用 OpenAI Python SDK 反序列化模型响应时,某个 Pydantic BaseModel 字段或响应类型被标注为“裸” dict (没有任何类型参数),SDK 的 construct_type() 仍按 Dict[K, V] 去解包类型参数,于是触发 ValueErr

Browser Hang on Multi-Component Update

Browser Hang on Multi-Component Update

在 Gradio 6.7.0 中,当单个 gr.Button.click 事件同时更新多个组件(例如 Markdown、两个 Dataframe 和 DownloadButton)时,浏览器标签页会完全卡死约 60 秒甚至无限期无响应,并抛出 Browser Hang on Multi-Compon