{"record":{"id":"527fbe66254bb2cc","repo":"AlistGo/alist","slug":"terabox-failed-to-precreate-file-errno-d","errorCode":null,"errorMessage":"[terabox] failed to precreate file, errno: %d","messagePattern":"\\[terabox\\] failed to precreate file, errno: (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/terabox/driver.go","lineNumber":174,"sourceCode":"\n\tdata := map[string]string{\n\t\t\"path\":                  rawPath,\n\t\t\"autoinit\":              \"1\",\n\t\t\"target_path\":           dstDir.GetPath(),\n\t\t\"block_list\":            precreateBlockListStr,\n\t\t\"local_mtime\":           strconv.FormatInt(stream.ModTime().Unix(), 10),\n\t\t\"file_limit_switch_v34\": \"true\",\n\t}\n\tvar precreateResp PrecreateResp\n\tlog.Debugln(data)\n\tres, err := d.post_form(\"/api/precreate\", nil, data, &precreateResp)\n\tif err != nil {\n\t\treturn err\n\t}\n\tlog.Debugf(\"%+v\", precreateResp)\n\tif precreateResp.Errno != 0 {\n\t\tlog.Debugln(string(res))\n\t\treturn fmt.Errorf(\"[terabox] failed to precreate file, errno: %d\", precreateResp.Errno)\n\t}\n\tif precreateResp.ReturnType == 2 {\n\t\treturn nil\n\t}\n\n\t// upload chunks\n\ttempFile, err := stream.CacheFullInTempFile()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tparams := map[string]string{\n\t\t\"method\":     \"upload\",\n\t\t\"path\":       path,\n\t\t\"uploadid\":   precreateResp.Uploadid,\n\t\t\"app_id\":     \"250528\",\n\t\t\"web\":        \"1\",\n\t\t\"channel\":    \"dubox\",","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/terabox/driver.go#L156-L192","documentation":"Error \"[terabox] failed to precreate file, errno: %d\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/terabox/driver.go:174 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-15T17:31:12.345Z"}