{"record":{"id":"8bcb240096d0ee99","repo":"chenhg5/cc-connect","slug":"s-update-card-entity-parse-response-w","errorCode":null,"errorMessage":"%s: update card entity: parse response: %w","messagePattern":"(.+?): update card entity: parse response: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"platform/feishu/feishu.go","lineNumber":5393,"sourceCode":"\t\t\"sequence\": seq,\n\t}\n\tvar apiResp *larkcore.ApiResp\n\tif err := p.withFreshTenantAccessTokenRetry(ctx, \"update card entity\", func(client *lark.Client, options ...larkcore.RequestOptionFunc) error {\n\t\tvar err error\n\t\tapiResp, err = client.Put(ctx, apiPath, body, larkcore.AccessTokenTypeTenant, options...)\n\t\treturn err\n\t}); err != nil {\n\t\treturn fmt.Errorf(\"%s: update card entity: %w\", p.tag(), err)\n\t}\n\tif apiResp == nil || apiResp.StatusCode != http.StatusOK {\n\t\treturn fmt.Errorf(\"%s: update card entity: HTTP status %d\", p.tag(), apiResp.StatusCode)\n\t}\n\tvar resp struct {\n\t\tCode int    `json:\"code\"`\n\t\tMsg  string `json:\"msg\"`\n\t}\n\tif err := json.Unmarshal(apiResp.RawBody, &resp); err != nil {\n\t\treturn fmt.Errorf(\"%s: update card entity: parse response: %w\", p.tag(), err)\n\t}\n\tif resp.Code != 0 {\n\t\treturn fmt.Errorf(\"%s: %w\", p.tag(), classifyFeishuCardAPIError(\"update card entity\", resp.Code, resp.Msg))\n\t}\n\treturn nil\n}\n\nfunc (p *Platform) Stop() error {\n\t// Issue #1618: stop the background supervisor that retries the\n\t// bot-info API when startup discovery fails. Without this the\n\t// goroutine could outlive the platform and leak into the next\n\t// start cycle.\n\tp.stopGroupFilterSupervisor()\n\tif p.isWSPrimary {\n\t\tremaining := unregisterSharedWS(p)\n\t\tif remaining > 0 {\n\t\t\tslog.Warn(p.tag()+\": primary shutting down, secondary platforms will lose event source\",\n\t\t\t\t\"remaining\", remaining)","sourceCodeStart":5375,"sourceCodeEnd":5411,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/platform/feishu/feishu.go#L5375-L5411","documentation":"updateCardEntity got a successful HTTP response but could not json.Unmarshal the CardKit response body into the expected code/msg structure. Wraps the parse error; the update's business-level result is unknown.","triggerScenarios":"Thrown at platform/feishu/feishu.go:5393 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry; check for API gateway/proxy interference"],"exampleFix":null,"handlingStrategy":"try-catch","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"}