{"record":{"id":"af32bebe1cec4a47","repo":"AlistGo/alist","slug":"parse-upload-init-response-failed-w","errorCode":null,"errorMessage":"parse upload init response failed: %w","messagePattern":"parse upload init response failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/bitqiu/driver.go","lineNumber":448,"sourceCode":"\t}\n\tform := map[string]string{\n\t\t\"parentId\":    parentID,\n\t\t\"name\":        file.GetName(),\n\t\t\"size\":        strconv.FormatInt(file.GetSize(), 10),\n\t\t\"hash\":        md5sum,\n\t\t\"sampleMd5\":   md5sum,\n\t\t\"org_channel\": orgChannel,\n\t}\n\tvar resp Response[json.RawMessage]\n\tif err = d.postForm(ctx, uploadInitializeURL, form, &resp); err != nil {\n\t\treturn nil, err\n\t}\n\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 {","sourceCodeStart":430,"sourceCodeEnd":466,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/bitqiu/driver.go#L430-L466","documentation":"Error \"parse upload init response failed: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/bitqiu/driver.go:448 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"}