{"record":{"id":"7fce9c4f501b9fef","repo":"chenhg5/cc-connect","slug":"s-get-message-api-call-w","errorCode":null,"errorMessage":"%s: get message api call: %w","messagePattern":"(.+?): get message api call: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"platform/feishu/feishu.go","lineNumber":1145,"sourceCode":"\tif p.isMessageRecalled(messageID) {\n\t\treturn true, nil\n\t}\n\tif p.client == nil {\n\t\treturn false, fmt.Errorf(\"%s: client not initialized\", p.tag())\n\t}\n\n\treq := larkim.NewGetMessageReqBuilder().\n\t\tMessageId(messageID).\n\t\tUserIdType(larkim.UserIdTypeGetMessageOpenId).\n\t\tBuild()\n\n\tvar resp *larkim.GetMessageResp\n\tif err := p.withTransientRetry(ctx, \"get message\", func() error {\n\t\treturn p.withFreshTenantAccessTokenRetry(ctx, \"get message\", func(client *lark.Client, options ...larkcore.RequestOptionFunc) error {\n\t\t\tvar err error\n\t\t\tresp, err = client.Im.Message.Get(ctx, req, options...)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"%s: get message api call: %w\", p.tag(), err)\n\t\t\t}\n\t\t\tif !resp.Success() {\n\t\t\t\treturn fmt.Errorf(\"%s: get message failed code=%d msg=%s\", p.tag(), resp.Code, resp.Msg)\n\t\t\t}\n\t\t\treturn nil\n\t\t})\n\t}); err != nil {\n\t\tif resp != nil && isMessageWithdrawnCode(resp.Code, resp.Msg) {\n\t\t\tp.markMessageRecalled(messageID)\n\t\t\treturn true, nil\n\t\t}\n\t\tif isMessageWithdrawnError(err) {\n\t\t\tp.markMessageRecalled(messageID)\n\t\t\treturn true, nil\n\t\t}\n\t\treturn false, err\n\t}\n","sourceCodeStart":1127,"sourceCodeEnd":1163,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/platform/feishu/feishu.go#L1127-L1163","documentation":"Feishu message-recall check wraps the lark SDK Im.Message.Get transport error inside the transient-retry and fresh-token retry layers; fires when the API call keeps failing at transport level (network or token problems).","triggerScenarios":"Thrown at platform/feishu/feishu.go:1145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for the built-in retries to absorb transient errors","Verify app credentials if token refresh keeps failing"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}