[Bug]: /v1/messages answers 503 “authentication database is temporarily unreachable” when the upstream call fails
![[Bug]: /v1/messages answers 503 "authentication database is temporarily unreachable" when the upstream call fails](https://www.chat-gpts.plus/wp-content/uploads/2026/11/49998-bcb7d5b1-768x403.jpg)
当 /v1/messages 遇到不属于 ProxyException 的上游失败(例如连接错误)时,错误处理分支引用了未绑定的变量 e ,触发 UnboundLocalError ,代理随后把这个异常误报为数据库不可用并返回 503。优先排查 Anthropic 端点错误处理代码,而不是真的去查数








