grok2api icon indicating copy to clipboard operation
grok2api copied to clipboard

bug:重复出现AppChatReverse: Chat failed, 403,生图聊天全部报错

Open xiejunjie524 opened this issue 8 months ago • 5 comments

问题描述

2026-03-18 13:09:07 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:09:07 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 0.91s 2026-03-18 13:09:07 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (8152.88ms) 2026-03-18 13:10:44 | INFO | response_middleware.py:44 - Request: POST /v1/chat/completions 2026-03-18 13:10:44 | INFO | manager.py:126 - TokenManager initialized: 1 pools with 13922 tokens 2026-03-18 13:10:44 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:45 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:45 | WARNING | retry.py:234 - Retry 1/3 for status 403, waiting 0.66s (total: 0.66s) 2026-03-18 13:10:46 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:47 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:47 | WARNING | retry.py:234 - Retry 2/3 for status 403, waiting 0.76s (total: 1.41s) 2026-03-18 13:10:48 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:49 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:49 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 1.41s 2026-03-18 13:10:49 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (5429.44ms)

复现步骤

2026-03-18 13:09:07 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:09:07 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 0.91s 2026-03-18 13:09:07 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (8152.88ms) 2026-03-18 13:10:44 | INFO | response_middleware.py:44 - Request: POST /v1/chat/completions 2026-03-18 13:10:44 | INFO | manager.py:126 - TokenManager initialized: 1 pools with 13922 tokens 2026-03-18 13:10:44 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:45 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:45 | WARNING | retry.py:234 - Retry 1/3 for status 403, waiting 0.66s (total: 0.66s) 2026-03-18 13:10:46 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:47 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:47 | WARNING | retry.py:234 - Retry 2/3 for status 403, waiting 0.76s (total: 1.41s) 2026-03-18 13:10:48 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:49 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:49 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 1.41s 2026-03-18 13:10:49 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (5429.44ms)

预期行为

2026-03-18 13:09:07 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:09:07 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 0.91s 2026-03-18 13:09:07 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (8152.88ms) 2026-03-18 13:10:44 | INFO | response_middleware.py:44 - Request: POST /v1/chat/completions 2026-03-18 13:10:44 | INFO | manager.py:126 - TokenManager initialized: 1 pools with 13922 tokens 2026-03-18 13:10:44 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:45 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:45 | WARNING | retry.py:234 - Retry 1/3 for status 403, waiting 0.66s (total: 0.66s) 2026-03-18 13:10:46 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:47 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:47 | WARNING | retry.py:234 - Retry 2/3 for status 403, waiting 0.76s (total: 1.41s) 2026-03-18 13:10:48 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:49 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:49 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 1.41s 2026-03-18 13:10:49 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (5429.44ms)

实际行为

2026-03-18 13:09:07 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:09:07 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 0.91s 2026-03-18 13:09:07 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (8152.88ms) 2026-03-18 13:10:44 | INFO | response_middleware.py:44 - Request: POST /v1/chat/completions 2026-03-18 13:10:44 | INFO | manager.py:126 - TokenManager initialized: 1 pools with 13922 tokens 2026-03-18 13:10:44 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:45 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:45 | WARNING | retry.py:234 - Retry 1/3 for status 403, waiting 0.66s (total: 0.66s) 2026-03-18 13:10:46 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:47 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:47 | WARNING | retry.py:234 - Retry 2/3 for status 403, waiting 0.76s (total: 1.41s) 2026-03-18 13:10:48 | INFO | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891 2026-03-18 13:10:49 | ERROR | app_chat.py:223 - AppChatReverse: Chat failed, 403 2026-03-18 13:10:49 | ERROR | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 1.41s 2026-03-18 13:10:49 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (5429.44ms)

部署方式

本地 uv run

版本/提交号

最新版

相关日志/报错

2026-03-18 13:09:07 | ERROR    | app_chat.py:223 - AppChatReverse: Chat failed, 403
2026-03-18 13:09:07 | ERROR    | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 0.91s
2026-03-18 13:09:07 | INFO     | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (8152.88ms)
2026-03-18 13:10:44 | INFO     | response_middleware.py:44 - Request: POST /v1/chat/completions
2026-03-18 13:10:44 | INFO     | manager.py:126 - TokenManager initialized: 1 pools with 13922 tokens
2026-03-18 13:10:44 | INFO     | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891
2026-03-18 13:10:45 | ERROR    | app_chat.py:223 - AppChatReverse: Chat failed, 403
2026-03-18 13:10:45 | WARNING  | retry.py:234 - Retry 1/3 for status 403, waiting 0.66s (total: 0.66s)
2026-03-18 13:10:46 | INFO     | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891
2026-03-18 13:10:47 | ERROR    | app_chat.py:223 - AppChatReverse: Chat failed, 403
2026-03-18 13:10:47 | WARNING  | retry.py:234 - Retry 2/3 for status 403, waiting 0.76s (total: 1.41s)
2026-03-18 13:10:48 | INFO     | app_chat.py:192 - AppChatReverse proxy enabled: scheme=socks5h, target=socks5h://127.0.0.1:7891
2026-03-18 13:10:49 | ERROR    | app_chat.py:223 - AppChatReverse: Chat failed, 403
2026-03-18 13:10:49 | ERROR    | retry.py:251 - Retry exhausted after 3 attempts, last status: 403, total delay: 1.41s
2026-03-18 13:10:49 | INFO     | response_middleware.py:60 - Response: POST /v1/chat/completions - 200 (5429.44ms)

请求样例(可选)


xiejunjie524 avatar Mar 18 '26 05:03 xiejunjie524

今天上午就一直报错了,我刚重新拉了仓库问题就更大了

xiejunjie524 avatar Mar 18 '26 05:03 xiejunjie524

一样的问题

hu19940121 avatar Mar 18 '26 05:03 hu19940121

一样的问题

我估计是挂了,今天开始就一直用不了

xiejunjie524 avatar Mar 18 '26 05:03 xiejunjie524

实测正常,检查你的ip环境

Image

chenyme avatar Mar 18 '26 05:03 chenyme

@chenyme 你这个聊天对话页面从哪里点进去的

yyb196 avatar Mar 19 '26 12:03 yyb196