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

1.1.5版本 ,收不到钉钉通知,如何排查? #34

Closed
yichengsd opened this issue Jul 21, 2020 · 8 comments
Closed

1.1.5版本 ,收不到钉钉通知,如何排查? #34

yichengsd opened this issue Jul 21, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@yichengsd
Copy link

报错日志如下
[root@croco crocodile]# ./crocodile-linux-amd64 version
Version : v1.1.5
Commit : 0f33f88
BuildDate : 2020-07-11
[root@croco crocodile]# cat crocodile.log | grep dingtalk
2020-07-21T09:01:19.514+0800 error alarm/alarm.go:271 send dingding notify failed {"error": "errmsg: invalid timestamp, more: [https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq] errcode: 310000"}

@yichengsd
Copy link
Author

服务器时间是正确的。和ntp同步的。
[root@croco crocodile]# date
Tue Jul 21 09:45:22 CST 2020

@yichengsd yichengsd changed the title 1.1.5版本 ,无法发送钉钉通知,如何排查? 1.1.5版本 ,收不到钉钉通知,如何排查? Jul 21, 2020
@yichengsd
Copy link
Author

配置文件的格式没有修改吧?我从旧版直接复制过来的。

@labulakalia
Copy link
Owner

@yichengsd 配置文件没有更改,你是用的加签的方式吗?

@yichengsd
Copy link
Author

是的。加签方式。
image

@lorock
Copy link

lorock commented Jul 21, 2020

貌似和我的问题一样,重新启动之后可以恢复,过一段时间又不行了,同时后台有大量的“取消调用”消息

@labulakalia labulakalia added the bug Something isn't working label Jul 22, 2020
@labulakalia
Copy link
Owner

是的。加签方式。
image

我自已在我本地测试报警没问题呀,也是用的加签的方式,你看看是不是你本地的时间的问题,因为在钉钉的开发文档发送信息需要携带本地的时间戳,如果服务器与钉钉那边时间差距过大可能就会异常

@labulakalia
Copy link
Owner

IMG_3D573FEA635A-1
这是钉钉上收到的信息,我还特意测试过这个接口的代码也没问题,或者你可以先选用 自定义关键字或者IP地址的方式

@labulakalia
Copy link
Owner

最新版已经修复这个问题

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

3 participants