{"record":{"id":"3bc4bf33a4ccf383","repo":"AlistGo/alist","slug":"empty-download-url-returned","errorCode":null,"errorMessage":"empty download url returned","messagePattern":"empty download url returned","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/bitqiu/driver.go","lineNumber":179,"sourceCode":"\tif d.userID == \"\" {\n\t\tif err := d.login(ctx); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tform := map[string]string{\n\t\t\"fileIds\":     file.GetID(),\n\t\t\"org_channel\": orgChannel,\n\t}\n\tfor attempt := 0; attempt < 2; attempt++ {\n\t\tvar resp Response[DownloadData]\n\t\tif err := d.postForm(ctx, downloadURL, form, &resp); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tswitch resp.Code {\n\t\tcase successCode:\n\t\t\tif resp.Data.URL == \"\" {\n\t\t\t\treturn nil, fmt.Errorf(\"empty download url returned\")\n\t\t\t}\n\t\t\treturn &model.Link{URL: resp.Data.URL}, nil\n\t\tcase \"10401\", \"10404\":\n\t\t\tif err := d.login(ctx); err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\tdefault:\n\t\t\treturn nil, fmt.Errorf(\"get link failed: %s\", resp.Message)\n\t\t}\n\t}\n\treturn nil, fmt.Errorf(\"get link failed: retry limit reached\")\n}\n\nfunc (d *BitQiu) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) {\n\tif d.userID == \"\" {\n\t\tif err := d.login(ctx); err != nil {\n\t\t\treturn nil, err\n\t\t}","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/bitqiu/driver.go#L161-L197","documentation":"Error \"empty download url returned\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/bitqiu/driver.go:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the referenced value is configured and non-empty, then retry the operation."],"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"}