{"record":{"id":"4db63aa8d2abf268","repo":"goharbor/harbor","slug":"the-value-of-s-isn-t-string-4db63a","errorCode":null,"errorMessage":"the value of %s isn't string","messagePattern":"the value of (.+?) isn't string","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/jobservice/job/impl/replication/replication.go","lineNumber":169,"sourceCode":"\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\n}\n\nfunc parseParam(params map[string]any, name string, v any) error {\n\tvalue, exist := params[name]\n\tif !exist {\n\t\treturn fmt.Errorf(\"param %s not found\", name)\n\t}\n\n\tstr, ok := value.(string)\n\tif !ok {\n\t\treturn fmt.Errorf(\"the value of %s isn't string\", name)\n\t}\n\n\treturn json.Unmarshal([]byte(str), v)\n}\n","sourceCodeStart":151,"sourceCodeEnd":174,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/job/impl/replication/replication.go#L151-L174","documentation":"Error \"the value of %s isn't string\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/jobservice/job/impl/replication/replication.go:169 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"}