binarywang/WxJava · error · IllegalArgumentException
缺少tagId参数
Error message
缺少tagId参数
What it means
Error "缺少tagId参数" thrown in binarywang/WxJava.
Source
Thrown at weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTagServiceImpl.java:134
for (String userId : userIds) {
jsonArray.add(new JsonPrimitive(userId));
}
jsonObject.add("userlist", jsonArray);
}
if (partyIds != null) {
JsonArray jsonArray = new JsonArray();
for (String userId : partyIds) {
jsonArray.add(new JsonPrimitive(userId));
}
jsonObject.add("partylist", jsonArray);
}
}
@Override
public WxCpTagGetResult get(String tagId) throws WxErrorException {
if (tagId == null) {
throw new IllegalArgumentException("缺少tagId参数");
}
String url = String.format(this.mainService.getWxCpConfigStorage().getApiUrl(TAG_GET), tagId);
String responseContent = this.mainService.get(url, null);
return WxCpTagGetResult.fromJson(responseContent);
}
}
View on GitHub (pinned to 1c43293a3c)
Solutions
- 调用标签相关接口时传入非空的 tagId 参数。
- 在调用前先创建或查询标签获取有效的 tagId。
When it happens
Trigger: Thrown at weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTagServiceImpl.java:134 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of binarywang/WxJava@1c43293a3c (2026-08-14).
Data as JSON: /api/errors/e63157019f43de52.
Report an issue: GitHub.