{"record":{"id":"a77e4fe993b1ea6d","repo":"AlistGo/alist","slug":"cal-proof-code-error-s","errorCode":null,"errorMessage":"cal proof code error: %s","messagePattern":"cal proof code error: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/aliyundrive_open/upload.go","lineNumber":209,"sourceCode":"\t\t\treturn nil, err\n\t\t}\n\t\tlog.Debugf(\"[aliyundrive_open] pre_hash matched, start rapid upload\")\n\n\t\thash := stream.GetHash().GetHash(utils.SHA1)\n\t\tif len(hash) != utils.SHA1.Width {\n\t\t\t_, hash, err = streamPkg.CacheFullInTempFileAndHash(stream, utils.SHA1)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\n\t\tdelete(createData, \"pre_hash\")\n\t\tcreateData[\"proof_version\"] = \"v1\"\n\t\tcreateData[\"content_hash_name\"] = \"sha1\"\n\t\tcreateData[\"content_hash\"] = hash\n\t\tcreateData[\"proof_code\"], err = d.calProofCode(stream)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"cal proof code error: %s\", err.Error())\n\t\t}\n\t\t_, err = d.request(ctx, limiterOther, \"/adrive/v1.0/openFile/create\", http.MethodPost, func(req *resty.Request) {\n\t\t\treq.SetBody(createData).SetResult(&createResp)\n\t\t})\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tif !createResp.RapidUpload {\n\t\t// 2. normal upload\n\t\tlog.Debugf(\"[aliyundive_open] normal upload\")\n\n\t\tpreTime := time.Now()\n\t\tvar offset, length int64 = 0, partSize\n\t\t//var length\n\t\tfor i := 0; i < len(createResp.PartInfoList); i++ {\n\t\t\tif utils.IsCanceled(ctx) {","sourceCodeStart":191,"sourceCodeEnd":227,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/aliyundrive_open/upload.go#L191-L227","documentation":"Error \"cal proof code error: %s\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/aliyundrive_open/upload.go:209 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"}