Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

偶尔超时 #311

Open
lou5588 opened this issue Nov 15, 2024 · 1 comment
Open

偶尔超时 #311

lou5588 opened this issue Nov 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lou5588
Copy link

lou5588 commented Nov 15, 2024

错误描述

自动加载证书,改成海外的地址apihk.mch.weixin.qq.com,调用下单接口会偶尔出现超时

重现bug的步骤

超时

预期行为

不能超时

导致错误的代码片段

rsaConfig = new RSAAutoCertificateConfig.Builder()
			.merchantId(this.pay.getMerchantId())
			.privateKeyFromPath(this.pay.getPrivateKeyPath())
			.merchantSerialNumber(this.pay.getMerchantSerialNumber())
			.apiV3Key(this.pay.getApiV3Key())

			.build();
	
		service = new AppServiceExtension.Builder().config(rsaConfig).hostName(HostName.APIHK).build();

操作系统

window

Java 版本

1.8

wechatpay-java 版本

v0.2.14

其他信息

No response

@lou5588 lou5588 added the bug Something isn't working label Nov 15, 2024
@wswdavid
Copy link

SDK只封装了HTTP请求,支付境外域名访问也依赖网络质量,看下源目IP地址,看下是否需要访问指定大区的加速域名

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants