{"record":{"id":"122a09f1d76ccd02","repo":"AlistGo/alist","slug":"cannot-get-link-from-download","errorCode":null,"errorMessage":"cannot get link from download","messagePattern":"cannot get link from download","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/quqi/util.go","lineNumber":202,"sourceCode":"}\n\nfunc (d *Quqi) linkFromDownload(id string) (*model.Link, error) {\n\tvar getDownloadResp GetDownloadResp\n\tif _, err := d.request(\"\", \"/api/doc/getDownload\", resty.MethodGet, func(req *resty.Request) {\n\t\treq.SetQueryParams(map[string]string{\n\t\t\t\"quqi_id\":     d.GroupID,\n\t\t\t\"tree_id\":     \"1\",\n\t\t\t\"node_id\":     id,\n\t\t\t\"url_type\":    \"undefined\",\n\t\t\t\"entry_type\":  \"undefined\",\n\t\t\t\"client_id\":   d.ClientID,\n\t\t\t\"no_redirect\": \"1\",\n\t\t})\n\t}, &getDownloadResp); err != nil {\n\t\treturn nil, err\n\t}\n\tif getDownloadResp.Data.Url == \"\" {\n\t\treturn nil, errors.New(\"cannot get link from download\")\n\t}\n\n\treturn &model.Link{\n\t\tURL: getDownloadResp.Data.Url,\n\t\tHeader: http.Header{\n\t\t\t\"Origin\": []string{\"https://quqi.com\"},\n\t\t\t\"Cookie\": []string{d.Cookie},\n\t\t},\n\t}, nil\n}\n\nfunc (d *Quqi) linkFromCDN(id string) (*model.Link, error) {\n\tdownloadLink, err := d.linkFromDownload(id)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar urlExchangeResp UrlExchangeResp","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/quqi/util.go#L184-L220","documentation":"Error \"cannot get link from download\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/quqi/util.go:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and 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-15T22:17:37.221Z"}