{"record":{"id":"5c8995c16b6832f5","repo":"AlistGo/alist","slug":"parse-upload-response-failed-w","errorCode":null,"errorMessage":"parse upload response failed: %w","messagePattern":"parse upload response failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/bitqiu/driver.go","lineNumber":467,"sourceCode":"\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\")\n\t}\n\tif size <= 0 {\n\t\treturn \"\", fmt.Errorf(\"invalid file size\")\n\t}\n\tbuf := make([]byte, chunkSize)\n\toffset := int64(0)","sourceCodeStart":449,"sourceCodeEnd":485,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/bitqiu/driver.go#L449-L485","documentation":"Error \"parse upload response failed: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/bitqiu/driver.go:467 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"}