{"record":{"id":"c11726381ea83260","repo":"AlistGo/alist","slug":"failed-to-convert-path-to-remote-path-w","errorCode":null,"errorMessage":"failed to convert path to remote path: %w","messagePattern":"failed to convert path to remote path: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/chunker/driver.go","lineNumber":114,"sourceCode":"\t}\n\tfor _, obj := range objs {\n\t\tif obj.GetName() == name {\n\t\t\treturn obj, nil\n\t\t}\n\t}\n\treturn nil, errs.ObjectNotFound\n}\n\nfunc (d *Chunker) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) {\n\tobj := d.linkedObject(file)\n\tif obj == nil || !obj.Chunked {\n\t\tremoteIndex := 0\n\t\tif obj != nil {\n\t\t\tremoteIndex = obj.MainRemoteIndex\n\t\t}\n\t\tactualPath, err := d.getActualPathForRemoteOnTarget(file.GetPath(), remoteIndex)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to convert path to remote path: %w\", err)\n\t\t}\n\t\tlink, _, err := op.Link(ctx, d.remoteTargets[remoteIndex].Storage, actualPath, args)\n\t\treturn link, err\n\t}\n\n\tlinkedParts := make([]linkedPart, 0, len(obj.Parts))\n\tbaseClosers := utils.EmptyClosers()\n\tfor _, part := range obj.Parts {\n\t\tactualPath, err := d.getActualChunkPath(obj.GetPath(), part.No, part.XactID, part.RemoteIndex)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to convert chunk path: %w\", err)\n\t\t}\n\t\tlink, _, err := op.Link(ctx, d.remoteTargets[part.RemoteIndex].Storage, actualPath, args)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif link.MFile != nil {\n\t\t\tbaseClosers.Add(link.MFile)","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/chunker/driver.go#L96-L132","documentation":"Error \"failed to convert path to remote path: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/chunker/driver.go:114 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}