{"record":{"id":"35e08ce29a0656fe","repo":"AlistGo/alist","slug":"upload-status-d","errorCode":null,"errorMessage":"upload status: %d","messagePattern":"upload status: (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/aliyundrive_open/upload.go","lineNumber":82,"sourceCode":"\treturn resp.PartInfoList, err\n}\n\nfunc (d *AliyundriveOpen) uploadPart(ctx context.Context, r io.Reader, partInfo PartInfo) error {\n\tuploadUrl := partInfo.UploadUrl\n\tif d.InternalUpload {\n\t\tuploadUrl = strings.ReplaceAll(uploadUrl, \"https://cn-beijing-data.aliyundrive.net/\", \"http://ccp-bj29-bj-1592982087.oss-cn-beijing-internal.aliyuncs.com/\")\n\t}\n\treq, err := http.NewRequestWithContext(ctx, \"PUT\", uploadUrl, r)\n\tif err != nil {\n\t\treturn err\n\t}\n\tres, err := base.HttpClient.Do(req)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_ = res.Body.Close()\n\tif res.StatusCode != http.StatusOK && res.StatusCode != http.StatusConflict {\n\t\treturn fmt.Errorf(\"upload status: %d\", res.StatusCode)\n\t}\n\treturn nil\n}\n\nfunc (d *AliyundriveOpen) completeUpload(ctx context.Context, fileId, uploadId string) (model.Obj, error) {\n\t// 3. complete\n\tvar newFile File\n\t_, err := d.request(ctx, limiterOther, \"/adrive/v1.0/openFile/complete\", http.MethodPost, func(req *resty.Request) {\n\t\treq.SetBody(base.Json{\n\t\t\t\"drive_id\":  d.DriveId,\n\t\t\t\"file_id\":   fileId,\n\t\t\t\"upload_id\": uploadId,\n\t\t}).SetResult(&newFile)\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn fileToObj(newFile), nil","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/aliyundrive_open/upload.go#L64-L100","documentation":"Error \"upload status: %d\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/aliyundrive_open/upload.go:82 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-15T22:17:37.221Z"}