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

V3版本的POST无参数请求会一直报错 #59

Closed
Will-yc opened this issue Nov 12, 2022 · 5 comments
Closed

V3版本的POST无参数请求会一直报错 #59

Will-yc opened this issue Nov 12, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Will-yc
Copy link

Will-yc commented Nov 12, 2022

错误描述

解约接口:/v3/offlinefacemch/organizations/{organization_id}/users/user-id/{user_id}/terminate-contract,文档要求不需要参数,参考文档,使用api中的httpClient请求是一直提示请求的参数错误,其他接口请求都正常,唯独这个无参的POST请求不同,接口参考地址:https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/k12-development-guidelines.html#_4-6-%E8%A7%A3%E9%99%A4%E5%88%B7%E8%84%B8%E7%94%A8%E6%88%B7%E7%AD%BE%E7%BA%A6%E5%85%B3%E7%B3%BB%E6%8E%A5%E5%8F%A3

重现bug的步骤

image
这个是代码,参数为空,一直提示参数有误

预期行为

正常执行接口请求

导致错误的代码片段

No response

操作系统

windows

Java 版本

java11

wechatpay-java 版本

0.2.0

其他信息

No response

@Will-yc Will-yc added the bug Something isn't working label Nov 12, 2022
@xy-peng
Copy link
Contributor

xy-peng commented Nov 12, 2022

看起来是服务端业务原因报错了。你试试不设置body的值为 {}

也建议你检查下 organization_iduser_id 的值,是否正确。

@Will-yc
Copy link
Author

Will-yc commented Nov 12, 2022

image
依然是请求参数错误

@Will-yc
Copy link
Author

Will-yc commented Nov 12, 2022

organization_id 和 user_id的值是没有问题的,因为是从上一个业务直接复制过来的

@Will-yc
Copy link
Author

Will-yc commented Nov 12, 2022

无论怎么传值,都会报错,这个问题应该向那里提出,搞的现在业务进行不下去了

@xy-peng
Copy link
Contributor

xy-peng commented Nov 12, 2022

  1. 检查下 user-id 是否正确
  2. 检查下是否已经解绑或者绑定关系不存在

我估计这个API输出的错误消息不准确,所以你无法定位到问题。建议你参考我说的两点检查检查。

业务问题可以在开放平台社区发帖,或者联系在线技术支持

@xy-peng xy-peng closed this as completed Nov 14, 2022
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