grok2api icon indicating copy to clipboard operation
grok2api copied to clipboard

question: 401报警

Open dirt1213 opened this issue 9 months ago • 2 comments

昨天还没事了,今天开始401报警

Image 瀑布生图没事 Image 视频也没事 日志如下 2026-02-26 11:25:13 | INFO | response_middleware.py:60 - Response: GET /v1/public/verify - 401 (1.34ms)INFO: 92.118.126.116:51934 - "GET /v1/public/verify HTTP/1.1" 401 Unauthorized 2026-02-26 11:25:31 | INFO | response_middleware.py:44 - Request: GET /v1/public/verify2026-02-26 11:25:31 | INFO | response_middleware.py:60 - Response: GET /v1/public/verify - 200 (1.45ms)INFO: 92.118.126.116:55164 - "GET /v1/public/verify HTTP/1.1" 200 OK 2026-02-26 11:25:31 | INFO | response_middleware.py:44 - Request: POST /v1/chat/completions2026-02-26 11:25:31 | WARNING | exceptions.py:150 - HTTPException: 401 - Invalid authentication token2026-02-26 11:25:31 | INFO | response_middleware.py:60 - Response: POST /v1/chat/completions - 401 (2.47ms)INFO: 92.118.126.116:55164 - "POST /v1/chat/completions HTTP/1.1" 401 Unauthorize 换了几个服务器都是这样

dirt1213 avatar Feb 26 '26 03:02 dirt1213

401 说明某个号的 token 有问题,check 一下是否被 ban 了 或者 token 失效了

chenyme avatar Feb 26 '26 03:02 chenyme

how to get the token? you didnt explain it at all in the documentation

erikdemarco avatar Mar 18 '26 04:03 erikdemarco