{"id":"6d75ea455d0c0961","repo":"docker/cli","slug":"missing-node-id-in-details-v","errorCode":null,"errorMessage":"missing node id in details: %v","messagePattern":"missing node id in details: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/command/service/logs.go","lineNumber":338,"sourceCode":"\t\toutput = append(output, ' ')\n\t}\n\n\t// add the log message itself, finally\n\toutput = append(output, parts[detailsIndex+1]...)\n\n\t_, err = lw.w.Write(output)\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\n\treturn len(buf), nil\n}\n\n// parseContext returns a log context and REMOVES the context from the details map\nfunc parseContext(details map[string]string) (logContext, error) {\n\tnodeID, ok := details[\"com.docker.swarm.node.id\"]\n\tif !ok {\n\t\treturn logContext{}, fmt.Errorf(\"missing node id in details: %v\", details)\n\t}\n\tdelete(details, \"com.docker.swarm.node.id\")\n\n\tserviceID, ok := details[\"com.docker.swarm.service.id\"]\n\tif !ok {\n\t\treturn logContext{}, fmt.Errorf(\"missing service id in details: %v\", details)\n\t}\n\tdelete(details, \"com.docker.swarm.service.id\")\n\n\ttaskID, ok := details[\"com.docker.swarm.task.id\"]\n\tif !ok {\n\t\treturn logContext{}, fmt.Errorf(\"missing task id in details: %s\", details)\n\t}\n\tdelete(details, \"com.docker.swarm.task.id\")\n\n\treturn logContext{\n\t\tnodeID:    nodeID,\n\t\tserviceID: serviceID,","sourceCodeStart":320,"sourceCodeEnd":356,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/command/service/logs.go#L320-L356","documentation":"Error \"missing node id in details: %v\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/command/service/logs.go:338 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}