收藏
回答

企业群机机器人同样的内容一次成功一次失败改怎么办?

一个企业群机机器人的推送功能,使用curl、postman 是可以正常推送,但是使用GO语言写了一个自己写了就一直返回

{"errcode":40008,"errmsg":"invalid message type, hint: [1604917018_51_1e1b6f26f3108d02eef3c4bb7c87e041], from ip: xx.xx.xxx.xxx, more info at https://open.work.weixin.qq.com/devtool/query?e=40008"}

去指定的网站上查询错误信息,提示没有日志信息,

检查了一下postman发送的内容如下:

{ 'content-type': 'application/json',

  'user-agent': 'PostmanRuntime/7.26.8',

  accept: '*/*',

  'cache-control': 'no-cache',

  'postman-token': '580e0c47-de81-4c50-8480-c69eed3d40bb',

  host: '127.0.0.1:3000',

  'accept-encoding': 'gzip, deflate, br',

  connection: 'keep-alive',

  'content-length': '143' }

{ msgtype: 'text',

  text: { content: '填写一下上周加班信息', mentioned_list: [ '@all'] } }

  

  

使用GO发送的内容如下:

{ host: '127.0.0.1:3000',

  'user-agent': 'Go-http-client/1.1',

  'content-length': '96',

  'content-type': 'application/json',

  'accept-encoding': 'gzip' }

{ msgtype: 'text',

  text: { content: '填写一下上周加班信息', mentioned_list: [ '@all' ] } }

并没有发现那里有问题。有米有大神能帮忙看下。

回答关注问题邀请回答
收藏

1 个回答

  • 企业微信运营专员-千夜
    企业微信运营专员-千夜
    2020-11-10

    你好,看日志是请求内容为空,可以再检查下代码看下

    2020-11-10
    有用
    回复
登录 后发表内容
问题标签