{"record":{"id":"361802536ce14a17","repo":"binarywang/WxJava","slug":"error-361802","errorCode":null,"errorMessage":"错误代码：{}, 错误信息：{}","messagePattern":"错误代码：(.+?), 错误信息：(.+?)","errorType":"exception","errorClass":"WxErrorException","httpStatus":null,"severity":"error","filePath":"weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java","lineNumber":179,"sourceCode":"    }\n  }\n\n  @Override\n  public String getSuiteJsApiTicket(String authCorpId) throws WxErrorException {\n    if (this.configStorage.isAuthSuiteJsApiTicketExpired(authCorpId)) {\n\n      String resp = get(configStorage.getApiUrl(GET_SUITE_JSAPI_TICKET),\n        \"type=agent_config&access_token=\" + this.configStorage.getAccessToken(authCorpId), true);\n\n      JsonObject jsonObject = GsonParser.parse(resp);\n      if (jsonObject.get(WxConsts.ERR_CODE).getAsInt() == 0) {\n        String jsApiTicket = jsonObject.get(\"ticket\").getAsString();\n        int expiredInSeconds = jsonObject.get(\"expires_in\").getAsInt();\n        synchronized (globalJsApiTicketRefreshLock) {\n          configStorage.updateAuthSuiteJsApiTicket(authCorpId, jsApiTicket, expiredInSeconds);\n        }\n      } else {\n        throw new WxErrorException(WxError.fromJson(resp));\n      }\n    }\n\n    return configStorage.getAuthSuiteJsApiTicket(authCorpId);\n  }\n\n  @Override\n  public String getSuiteJsApiTicket(String authCorpId, boolean forceRefresh) throws WxErrorException {\n    if (forceRefresh) {\n      this.configStorage.expireAuthSuiteJsApiTicket(authCorpId);\n    }\n    return this.getSuiteJsApiTicket(authCorpId);\n  }\n\n  @Override\n  public String getAuthCorpJsApiTicket(String authCorpId) throws WxErrorException {\n    if (this.configStorage.isAuthCorpJsApiTicketExpired(authCorpId)) {\n","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/binarywang/WxJava/blob/1c43293a3c2c9d7e91304b6d037fb017f680d0c6/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java#L161-L197","documentation":"Error \"错误代码：{}, 错误信息：{}\" thrown in binarywang/WxJava.","triggerScenarios":"Thrown at weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/BaseWxCpTpServiceImpl.java:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["根据返回的错误码对照企业微信第三方应用接口文档确认具体错误原因并修正请求参数。","检查 suite_access_token 是否有效、请求参数是否符合接口要求。"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1c43293a3c2c9d7e91304b6d037fb017f680d0c6","analyzedAt":"2026-08-14T02:29:11.060Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}