{"record":{"id":"2447ec0792fe7e85","repo":"larksuite/cli","slug":"exec-provider-value-for-id-q-is-not-json-serializ","errorCode":null,"errorMessage":"exec provider value for id %q is not JSON-serializable: %w","messagePattern":"exec provider value for id %q is not JSON-serializable: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/binding/secret_resolve_exec.go","lineNumber":236,"sourceCode":"\t\t}\n\t\treturn \"\", fmt.Errorf(\"exec provider failed for id %q: %s\", refID, msg)\n\t}\n\n\tif resp.Values == nil {\n\t\treturn \"\", fmt.Errorf(\"exec provider response missing 'values'\")\n\t}\n\tvalue, ok := resp.Values[refID]\n\tif !ok {\n\t\treturn \"\", fmt.Errorf(\"exec provider response missing id %q\", refID)\n\t}\n\n\tif str, ok := value.(string); ok {\n\t\treturn str, nil\n\t}\n\tif !jsonOnly {\n\t\tdata, err := json.Marshal(value)\n\t\tif err != nil {\n\t\t\treturn \"\", fmt.Errorf(\"exec provider value for id %q is not JSON-serializable: %w\", refID, err)\n\t\t}\n\t\treturn string(data), nil\n\t}\n\treturn \"\", fmt.Errorf(\"exec provider value for id %q is not a string\", refID)\n}\n","sourceCodeStart":218,"sourceCodeEnd":242,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/binding/secret_resolve_exec.go#L218-L242","documentation":"The value for refID is a non-string JSON type and jsonOnly is false, so the resolver attempts to JSON-encode it (mirroring OpenClaw's resolve.ts fallback); encoding/json rejected the value - e.g. a channel, func, cyclic reference, or NaN float.","triggerScenarios":"Thrown at internal/binding/secret_resolve_exec.go:236 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Return the secret as a JSON string or a plainly serializable value (no NaN, cycles, or channels)"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}