Skip to content

智能机器人与源码中的使用方式对应不上 #4099

Description

@zhunahao

简要描述

智能机器人与源码中的使用方式对应不上

模块版本情况

  • WxJava 模块名: weixin-java-cp
  • WxJava 版本号: 4.8.0

详细描述

  • 智能机器人(功能都对应不上INTELLIGENT_ROBOT.md)
    1 接收到的加密消息为JSON样式,测试用例中给出的还是XML的解析
    2 主动回复消息,创建机器人时没有secret

日志

ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: me.chanjar.weixin.common.error.WxErrorException: 错误代码:40001, 错误信息:不合法的secret参数;secret在应用详情/通讯录管理助手可查看,微信原始报文:{"errcode":40001,"errmsg":"invalid credential, hint: [1787279190614670252176838], from ip: 124.222.32.128, more info at https://open.work.weixin.qq.com/devtool/query?e=40001"}] with root cause
me.chanjar.weixin.common.error.WxErrorException: 错误代码:40001, 错误信息:不合法的secret参数;secret在应用详情/通讯录管理助手可查看,微信原始报文:{"errcode":40001,"errmsg":"invalid credential, hint: [1787279190614670252176838], from ip: 124.222.32.128, more info at https://open.work.weixin.qq.com/devtool/query?e=40001"}
	at me.chanjar.weixin.cp.api.impl.WxCpServiceImpl.getAccessToken(WxCpServiceImpl.java:59)
	at me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl.executeInternal(BaseWxCpServiceImpl.java:360)
	at me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl.execute(BaseWxCpServiceImpl.java:312)
	at me.chanjar.weixin.cp.api.impl.BaseWxCpServiceImpl.post(BaseWxCpServiceImpl.java:275)
	at me.chanjar.weixin.cp.api.impl.WxCpIntelligentRobotServiceImpl.sendMessage(WxCpIntelligentRobotServiceImpl.java:66)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions