{"record":{"id":"0812e25b8a21a4f9","repo":"goharbor/harbor","slug":"the-value-of-speed-isn-t-integer-t","errorCode":null,"errorMessage":"the value of speed isn't integer (%T)","messagePattern":"the value of speed isn't integer \\(%T\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/jobservice/job/impl/replication/replication.go","lineNumber":140,"sourceCode":"\tif err := parseParam(params, \"dst_resource\", dst); err != nil {\n\t\treturn nil, nil, nil, err\n\t}\n\n\tvar speed int32\n\tvalue, exist := params[\"speed\"]\n\tif !exist {\n\t\tspeed = 0\n\t} else {\n\t\tif s, ok := value.(int32); ok {\n\t\t\tspeed = s\n\t\t} else {\n\t\t\tif s, ok := value.(int); ok {\n\t\t\t\tspeed = int32(s)\n\t\t\t} else {\n\t\t\t\tif s, ok := value.(float64); ok {\n\t\t\t\t\tspeed = int32(s)\n\t\t\t\t} else {\n\t\t\t\t\treturn nil, nil, nil, fmt.Errorf(\"the value of speed isn't integer (%T)\", value)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tvar copyByChunk bool\n\tvalue, exist = params[\"copy_by_chunk\"]\n\tif exist {\n\t\tif boolVal, ok := value.(bool); ok {\n\t\t\tcopyByChunk = boolVal\n\t\t}\n\t}\n\n\topts := transfer.NewOptions(\n\t\ttransfer.WithSpeed(speed),\n\t\ttransfer.WithCopyByChunk(copyByChunk),\n\t)\n\treturn src, dst, opts, nil","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/job/impl/replication/replication.go#L122-L158","documentation":"Error \"the value of speed isn't integer (%T)\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/jobservice/job/impl/replication/replication.go:140 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}