René's URL Explorer Experiment


Title: 部分请求方法会造成无限递归 · Issue #1591 · binarywang/WxJava · GitHub

Open Graph Title: 部分请求方法会造成无限递归 · Issue #1591 · binarywang/WxJava

X Title: 部分请求方法会造成无限递归 · Issue #1591 · binarywang/WxJava

Description: 简要描述 在开发过程中发现 BaseWxMpServiceImpl.execute()调用 executeInternal方法 异常内 如果出现指定code会刷新token后调用execute() 而execute()方法终止条件为 为方法变量 int retryTimes = 0; 那么会如果一直出现指定code会造成无限递归 模块版本情况 WxJava 模块名: weixin-java-mp WxJava 版本号:3.7.0 详细描述 public T...

Open Graph Description: 简要描述 在开发过程中发现 BaseWxMpServiceImpl.execute()调用 executeInternal方法 异常内 如果出现指定code会刷新token后调用execute() 而execute()方法终止条件为 为方法变量 int retryTimes = 0; 那么会如果一直出现指定code会造成无限递归 模块版本情况 WxJava 模块名: weixin-java-...

X Description: 简要描述 在开发过程中发现 BaseWxMpServiceImpl.execute()调用 executeInternal方法 异常内 如果出现指定code会刷新token后调用execute() 而execute()方法终止条件为 为方法变量 int retryTimes = 0; 那么会如果一直出现指定code会造成无限递归 模块版本情况 WxJava 模块名: weixin-java-...

Opengraph URL: https://github.com/binarywang/WxJava/issues/1591

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"部分请求方法会造成无限递归","articleBody":"### 简要描述\r\n在开发过程中发现 BaseWxMpServiceImpl.execute()调用  executeInternal方法 异常内 如果出现指定code会刷新token后调用execute()\r\n而execute()方法终止条件为 为方法变量 int retryTimes = 0; 那么会如果一直出现指定code会造成无限递归\r\n\r\n### 模块版本情况\r\n* WxJava 模块名: weixin-java-mp\r\n* WxJava 版本号:3.7.0\r\n\r\n### 详细描述\r\n\r\n    public \u003cT, E\u003e T execute(RequestExecutor\u003cT, E\u003e executor, String uri, E data) throws WxErrorException {\r\n        int retryTimes = 0;\r\n\r\n        while(true) {\r\n            try {\r\n                return this.executeInternal(executor, uri, data);\r\n            } catch (WxErrorException var10) {\r\n                if (retryTimes + 1 \u003e this.maxRetryTimes) {\r\n                    log.warn(\"重试达到最大次数【{}】\", this.maxRetryTimes);\r\n                    throw new RuntimeException(\"微信服务端异常,超出重试次数\");\r\n                }\r\n\r\n                WxError error = var10.getError();\r\n                if (error.getErrorCode() != -1) {\r\n                    throw var10;\r\n                }\r\n\r\n                int sleepMillis = this.retrySleepMillis * (1 \u003c\u003c retryTimes);\r\n\r\n                try {\r\n                    log.warn(\"微信系统繁忙,{} ms 后重试(第{}次)\", sleepMillis, retryTimes + 1);\r\n                    Thread.sleep((long)sleepMillis);\r\n                } catch (InterruptedException var9) {\r\n                    throw new RuntimeException(var9);\r\n                }\r\n\r\n                if (retryTimes++ \u003e= this.maxRetryTimes) {\r\n                    log.warn(\"重试达到最大次数【{}】\", this.maxRetryTimes);\r\n                    throw new RuntimeException(\"微信服务端异常,超出重试次数\");\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    protected \u003cT, E\u003e T executeInternal(RequestExecutor\u003cT, E\u003e executor, String uri, E data) throws WxErrorException {\r\n        E dataForLog = DataUtils.handleDataWithSecret(data);\r\n        if (uri.contains(\"access_token=\")) {\r\n            throw new IllegalArgumentException(\"uri参数中不允许有access_token: \" + uri);\r\n        } else {\r\n            String accessToken = this.getAccessToken(false);\r\n            String uriWithAccessToken = uri + (uri.contains(\"?\") ? \"\u0026\" : \"?\") + \"access_token=\" + accessToken;\r\n\r\n            try {\r\n                T result = executor.execute(uriWithAccessToken, data, WxType.MP);\r\n                log.debug(\"\\n【请求地址】: {}\\n【请求参数】:{}\\n【响应数据】:{}\", new Object[]{uriWithAccessToken, dataForLog, result});\r\n                return result;\r\n            } catch (WxErrorException var9) {\r\n                WxError error = var9.getError();\r\n                if (error.getErrorCode() == 42001 || error.getErrorCode() == 40001 || error.getErrorCode() == 40014) {\r\n                    this.getWxMpConfigStorage().expireAccessToken();\r\n                    if (this.getWxMpConfigStorage().autoRefreshToken()) {\r\n                        return this.execute(executor, uri, data);\r\n                    }\r\n                }\r\n\r\n                if (error.getErrorCode() != 0) {\r\n                    log.error(\"\\n【请求地址】: {}\\n【请求参数】:{}\\n【错误信息】:{}\", new Object[]{uriWithAccessToken, dataForLog, error});\r\n                    throw new WxErrorException(error, var9);\r\n                } else {\r\n                    return null;\r\n                }\r\n            } catch (IOException var10) {\r\n                log.error(\"\\n【请求地址】: {}\\n【请求参数】:{}\\n【异常信息】:{}\", new Object[]{uriWithAccessToken, dataForLog, var10.getMessage()});\r\n                throw new WxErrorException(WxError.builder().errorMsg(var10.getMessage()).build(), var10);\r\n            }\r\n        }\r\n    }\r\n","author":{"url":"https://github.com/shuxuefu","@type":"Person","name":"shuxuefu"},"datePublished":"2020-05-29T07:42:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1591/WxJava/issues/1591"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:804a42dd-339f-b092-45af-e76c48a32380
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCCF6:32E10C:227EC8F:2E8BF24:6A653CE0
html-safe-noncecf88902b2cab99f8dfe4b617ff5c2d598d71039bfb4a9e92f10335acc2186b4c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0Y2OjMyRTEwQzoyMjdFQzhGOjJFOEJGMjQ6NkE2NTNDRTAiLCJ2aXNpdG9yX2lkIjoiNTQ0NDAyNTM5NzcwNDczNTk2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8b68d01a19fbbfb9b603514a329fbbfe1753a5bab187a53ad655a1c989bcf8f4
hovercard-subject-tagissue:627067836
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/binarywang/WxJava/1591/issue_layout
twitter:imagehttps://opengraph.githubassets.com/04cf0c7ee6ebf78aff247a8487b36e79b99edea70f76adb89c8e5a15a18bc3b8/binarywang/WxJava/issues/1591
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/04cf0c7ee6ebf78aff247a8487b36e79b99edea70f76adb89c8e5a15a18bc3b8/binarywang/WxJava/issues/1591
og:image:alt简要描述 在开发过程中发现 BaseWxMpServiceImpl.execute()调用 executeInternal方法 异常内 如果出现指定code会刷新token后调用execute() 而execute()方法终止条件为 为方法变量 int retryTimes = 0; 那么会如果一直出现指定code会造成无限递归 模块版本情况 WxJava 模块名: weixin-java-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameshuxuefu
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
go-importgithub.com/binarywang/WxJava git https://github.com/binarywang/WxJava.git
octolytics-dimension-user_id1343140
octolytics-dimension-user_loginbinarywang
octolytics-dimension-repository_id49122742
octolytics-dimension-repository_nwobinarywang/WxJava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49122742
octolytics-dimension-repository_network_root_nwobinarywang/WxJava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/binarywang/WxJava/issues/1591#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarywang%2FWxJava%2Fissues%2F1591
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarywang%2FWxJava%2Fissues%2F1591
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=binarywang%2FWxJava
Reloadhttps://github.com/binarywang/WxJava/issues/1591
Reloadhttps://github.com/binarywang/WxJava/issues/1591
Reloadhttps://github.com/binarywang/WxJava/issues/1591
binarywang https://github.com/binarywang
WxJavahttps://github.com/binarywang/WxJava
Please reload this pagehttps://github.com/binarywang/WxJava/issues/1591
Notifications https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Fork 9.1k https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Star 33k https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Code https://github.com/binarywang/WxJava
Issues 11 https://github.com/binarywang/WxJava/issues
Pull requests 6 https://github.com/binarywang/WxJava/pulls
Discussions https://github.com/binarywang/WxJava/discussions
Actions https://github.com/binarywang/WxJava/actions
Wiki https://github.com/binarywang/WxJava/wiki
Security and quality 0 https://github.com/binarywang/WxJava/security
Insights https://github.com/binarywang/WxJava/pulse
Code https://github.com/binarywang/WxJava
Issues https://github.com/binarywang/WxJava/issues
Pull requests https://github.com/binarywang/WxJava/pulls
Discussions https://github.com/binarywang/WxJava/discussions
Actions https://github.com/binarywang/WxJava/actions
Wiki https://github.com/binarywang/WxJava/wiki
Security and quality https://github.com/binarywang/WxJava/security
Insights https://github.com/binarywang/WxJava/pulse
部分请求方法会造成无限递归https://github.com/binarywang/WxJava/issues/1591#top
公众号https://github.com/binarywang/WxJava/issues?q=state%3Aopen%20label%3A%22%E5%85%AC%E4%BC%97%E5%8F%B7%22
3.9.0https://github.com/binarywang/WxJava/milestone/3
https://github.com/shuxuefu
shuxuefuhttps://github.com/shuxuefu
on May 29, 2020https://github.com/binarywang/WxJava/issues/1591#issue-627067836
公众号https://github.com/binarywang/WxJava/issues?q=state%3Aopen%20label%3A%22%E5%85%AC%E4%BC%97%E5%8F%B7%22
3.9.0https://github.com/binarywang/WxJava/milestone/3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.