{"record":{"id":"cb8afcdcd9477b98","repo":"AlistGo/alist","slug":"v","errorCode":null,"errorMessage":"%+v","messagePattern":"%\\+v","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/aliyundrive/driver.go","lineNumber":328,"sourceCode":"\t\tif count > 0 {\n\t\t\tup(float64(i) * 100 / float64(count))\n\t\t}\n\t}\n\tvar resp2 base.Json\n\t_, err, e = d.request(\"https://api.alipan.com/v2/file/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\":   resp.FileId,\n\t\t\t\"upload_id\": resp.UploadId,\n\t\t})\n\t}, &resp2)\n\tif err != nil && e.Code != \"PreHashMatched\" {\n\t\treturn err\n\t}\n\tif resp2[\"file_id\"] == resp.FileId {\n\t\treturn nil\n\t}\n\treturn fmt.Errorf(\"%+v\", resp2)\n}\n\nfunc (d *AliDrive) Other(ctx context.Context, args model.OtherArgs) (interface{}, error) {\n\tvar resp base.Json\n\tvar url string\n\tdata := base.Json{\n\t\t\"drive_id\": d.DriveId,\n\t\t\"file_id\":  args.Obj.GetID(),\n\t}\n\tswitch args.Method {\n\tcase \"doc_preview\":\n\t\turl = \"https://api.alipan.com/v2/file/get_office_preview_url\"\n\t\tdata[\"access_token\"] = d.AccessToken\n\tcase \"video_preview\":\n\t\turl = \"https://api.alipan.com/v2/file/get_video_preview_play_info\"\n\t\tdata[\"category\"] = \"live_transcoding\"\n\t\tdata[\"url_expire_sec\"] = 14400\n\tdefault:","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/aliyundrive/driver.go#L310-L346","documentation":"Error \"%+v\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/aliyundrive/driver.go:328 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-15T17:31:12.345Z"}