bot-on-anything icon indicating copy to clipboard operation
bot-on-anything copied to clipboard

钉钉不回复消息

Open ytanck opened this issue 1 year ago • 4 comments

这是启动的服务

  • Serving Flask app 'channel.dingtalk.dingtalk_channel' (lazy loading)
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: off
  • Running on all addresses. WARNING: This is a development server. Do not use it in a production deployment.
  • Running on http://xxx.28.236.xxx:8081/ (Press CTRL+C to quit)

ytanck avatar Apr 14 '23 07:04 ytanck

[INFO][2023-04-14 18:12:04][log.py:32] - [DingTalk] chat=b'{"conversationId":"cidyHavy5L8J3WZCeA==","atUsers":[{"dingtalkId":"$:LWCP_v1:$adAif2aWwQFVWgvilX2s7HZ4QPjskpGZ"}],"chatbotUserId":"$:LWCP_v1:$adAif2aWwvilX2s7HZ4QPjskpGZ","msgId":"msg5JTRuBk/icVKm+GQVkQ==","senderNick":"\xe6\x9d\xa8\xe6x9b","isAdmin":false,"sessionWebhookExpiredTime":168147223991,"createAt":1681467120726,"conversationType":"2","senderId":"$:LWCP_v1:$bVK8ELp4+oinwrDH2btA==","conversationTitle":"ytmos-TEST","isInAtList":true,"sessionWebhook":"https://oapi.dingtalk.com/robot/sendBySession?session=7ade48a7d6cb83e1415e712496b","text":{"content":" 2"},"robotCode":"normal","msgtype":"text"}' 203.119.21.86 - - [14/Apr/2023 18:12:04] "POST / HTTP/1.1" 200 -

有这么写信息,钉钉没回复

ytanck avatar Apr 14 '23 10:04 ytanck

INFO][2023-04-15 17:01:32][log.py:32] - [DingTalk] chat=b'{"conversationId":"cidyHavy5PT/pLeQL8J3WZCeA==","atUsers":[{"dingtalkId":"$:LWCP_v1:$adAif2aWwQFVWgvilX2s7HZ4QskpGZ"}],"chatbotUserId":"$:LWCP_v1:$adAif2aWwVWgvilX2s7HZ4QPjskpGZ","msgId":"msgk8RX2XWf/oezDCembESs9Q==","senderNick":"\xe6\xa8\xe6\xb6\x9b","isAdmin":false,"sessionWebhookExpiredTime":1681554691970,"createAt":1681549291058,"conversationType":"2","senderId":"$:LWCP_v1:$bVK8ELp4+2foinwrDH2btA==","conversationTitle":"ytmos-TEST","isInAtList":true,"sessionWebhook":"https://oapi.dingtalk.com/robot/sendBySession?session=8ddc923b902dcf98fcc92bbbcbe3d","text":{"content":" 555"},"robotCode":"normal","msgtype":"text"}' 203.119.241.97 - - [15/Apr/2023 17:01:32] "POST / HTTP/1.1" 200 - 服务器能收到消息,但是没有下文了,没有回复消息,何解

ytanck avatar Apr 15 '23 09:04 ytanck

@ytking 应该是配置文件里面那三个参数不对,建议你调试一下看看具体的值

skisqibao avatar Apr 19 '23 01:04 skisqibao

我配置群设置-机器人时,没有POST地址和Token, 机器人配置

所以在config.json中没有填写dingtalk_post_token,dingtalk_token填写的是机器人webhook中access_token,

image

dingtalk_secret填写的是加签中生成的Secret,端口设为8090。 config配置

运行后,提示成功。

运行后提示成功

我查看了我的公网ip,

公网IP地址

我在安全组中放行了8090端口。

image

在钉钉开放平台的机器人的开发管理中设置了我的服务器出口公网IP和消息接收地址为http://IP:8090。

开发管理配置

点击保存,提示“消息接收地址检验失败”

消息接收地址检验失败

怎么办?

franklili3 avatar Jun 01 '23 03:06 franklili3