{"record":{"id":"545f04ea190d1012","repo":"AlistGo/alist","slug":"e-error-545f04","errorCode":null,"errorMessage":"e.Error()","messagePattern":"e\\.Error\\(\\)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/pikpak_share/util.go","lineNumber":111,"sourceCode":"\t}\n\tvar e ErrResp\n\treq.SetError(&e)\n\tres, err := req.Execute(method, url)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tswitch e.ErrorCode {\n\tcase 0:\n\t\treturn res.Body(), nil\n\tcase 9: // 验证码token过期\n\t\tif err = d.RefreshCaptchaToken(GetAction(method, url), \"\"); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn d.request(url, method, callback, resp)\n\tcase 10: // 操作频繁\n\t\treturn nil, errors.New(e.ErrorDescription)\n\tdefault:\n\t\treturn nil, errors.New(e.Error())\n\t}\n}\n\nfunc (d *PikPakShare) getSharePassToken() error {\n\tquery := map[string]string{\n\t\t\"share_id\":       d.ShareId,\n\t\t\"pass_code\":      d.SharePwd,\n\t\t\"thumbnail_size\": \"SIZE_LARGE\",\n\t\t\"limit\":          \"100\",\n\t}\n\tvar resp ShareResp\n\t_, err := d.request(\"https://api-drive.mypikpak.net/drive/v1/share\", http.MethodGet, func(req *resty.Request) {\n\t\treq.SetQueryParams(query)\n\t}, &resp)\n\tif err != nil {\n\t\treturn err\n\t}\n\td.PassCodeToken = resp.PassCodeToken","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/pikpak_share/util.go#L93-L129","documentation":"Error \"e.Error()\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/pikpak_share/util.go:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation."],"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"}