{"record":{"id":"a21159ff7cf2ed03","repo":"chenhg5/cc-connect","slug":"s-send-preview-w","errorCode":null,"errorMessage":"%s: send preview: %w","messagePattern":"(.+?): send preview: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"platform/feishu/feishu.go","lineNumber":5133,"sourceCode":"\t\tif resp.Data != nil && resp.Data.MessageId != nil {\n\t\t\tmsgID = *resp.Data.MessageId\n\t\t}\n\t} else {\n\t\treq := larkim.NewCreateMessageReqBuilder().\n\t\t\tReceiveIdType(larkim.ReceiveIdTypeChatId).\n\t\t\tBody(larkim.NewCreateMessageReqBodyBuilder().\n\t\t\t\tReceiveId(chatID).\n\t\t\t\tMsgType(larkim.MsgTypeInteractive).\n\t\t\t\tContent(sendContent).\n\t\t\t\tBuild()).\n\t\t\tBuild()\n\t\tvar resp *larkim.CreateMessageResp\n\t\tif err := p.withTransientRetry(ctx, \"send preview\", func() error {\n\t\t\treturn p.withFreshTenantAccessTokenRetry(ctx, \"send preview\", func(client *lark.Client, options ...larkcore.RequestOptionFunc) error {\n\t\t\t\tvar err error\n\t\t\t\tresp, err = client.Im.Message.Create(ctx, req, options...)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"%s: send preview: %w\", p.tag(), err)\n\t\t\t\t}\n\t\t\t\tif !resp.Success() {\n\t\t\t\t\treturn fmt.Errorf(\"%s: send preview code=%d msg=%s\", p.tag(), resp.Code, resp.Msg)\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t})\n\t\t}); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif resp.Data != nil && resp.Data.MessageId != nil {\n\t\t\tmsgID = *resp.Data.MessageId\n\t\t}\n\t}\n\n\tif msgID == \"\" {\n\t\treturn nil, fmt.Errorf(\"%s: send preview: no message ID returned\", p.tag())\n\t}\n","sourceCodeStart":5115,"sourceCodeEnd":5151,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/platform/feishu/feishu.go#L5115-L5151","documentation":"Wrapped failure from the Feishu send-preview path (either replaying an existing interactive message or creating a new interactive card message to the chat), where %s is the retry operation label; fires when the lark SDK send call fails after transient-retry and token-retry wrappers.","triggerScenarios":"Thrown at platform/feishu/feishu.go:5133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rely on transient retry; verify the bot is still a chat member"],"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-14T05:17:10.506Z"}