{"record":{"id":"493902465275678e","repo":"AlistGo/alist","slug":"upload-failed-s","errorCode":null,"errorMessage":"upload failed: %s","messagePattern":"upload failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/bitqiu/driver.go","lineNumber":461,"sourceCode":"\tif resp.Code != uploadSuccessCode {\n\t\tswitch resp.Code {\n\t\tcase successCode:\n\t\t\tvar initData UploadInitData\n\t\t\tif err := json.Unmarshal(resp.Data, &initData); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parse upload init response failed: %w\", err)\n\t\t\t}\n\t\t\tserverCode, err := d.uploadFileInChunks(ctx, tmpFile, file.GetSize(), md5sum, initData, up)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tobj, err := d.completeChunkUpload(ctx, initData, parentID, parentPath, file.GetName(), file.GetSize(), md5sum, serverCode)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\tup(100)\n\t\t\treturn obj, nil\n\t\tdefault:\n\t\t\treturn nil, fmt.Errorf(\"upload failed: %s\", resp.Message)\n\t\t}\n\t}\n\n\tvar resource Resource\n\tif err := json.Unmarshal(resp.Data, &resource); err != nil {\n\t\treturn nil, fmt.Errorf(\"parse upload response failed: %w\", err)\n\t}\n\tobj, err := resource.toObject(parentID, parentPath)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tup(100)\n\treturn obj, nil\n}\n\nfunc (d *BitQiu) uploadFileInChunks(ctx context.Context, tmpFile model.File, size int64, md5sum string, initData UploadInitData, up driver.UpdateProgress) (string, error) {\n\tif d.client == nil {\n\t\treturn \"\", fmt.Errorf(\"client not initialized\")","sourceCodeStart":443,"sourceCodeEnd":479,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/bitqiu/driver.go#L443-L479","documentation":"Error \"upload failed: %s\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/bitqiu/driver.go:461 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"}