[Bug] VideoFrameTokensForAccount omits validateRPCResponse, turning upstream 401/429/5xx into ProtocolEvidenceError and bypassing DefinitiveAuthenticationFailure
发生了什么 / What happened
Summary
In internal/aistudio/video_frames.go:64-95, VideoFrameTokensForAccount sends StreamExtractVideoFrames via c.do(...) and immediately reads and decodes response.Body without calling validateRPCResponse("StreamExtractVideoFrames", response):
response, err := c.do(ctx, "StreamExtractVideoFrames", accountID, "", body, true)
if err != nil {
return 0, err
}
defer response.Body.Close()
raw, err := io.ReadAll(response.Body)
Consequence
If upstream returns HTTP 401 (expired session), 429, or 5xx, decodeVideoFrameTokens fails with ProtocolEvidenceError instead of *RPCError. As a result, DefinitiveAuthenticationFailure(err) at line 88 never triggers lease.ConfirmAuthenticationFailure, leaving expired accounts marked ready.
Suggested Fix
Call validateRPCResponse("StreamExtractVideoFrames", response) before reading response.Body (matching GenerateTitle at internal/aistudio/title.go:56).
版本 / Version
v0.3.14
每人最多同时打开 3 个 Issue,这个 Issue 已自动关闭。请等已有的 Issue 处理完再提,或把内容补充到已有的 Issue 里。
Each user can have at most 3 open issues at a time, so this one was closed automatically. Please wait until your existing issues are resolved, or add this to one of them.