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

脚本通知有概率丢失 #8

Closed
id77 opened this issue Dec 4, 2020 · 15 comments
Closed

脚本通知有概率丢失 #8

id77 opened this issue Dec 4, 2020 · 15 comments

Comments

@id77
Copy link

id77 commented Dec 4, 2020

多账号的脚本,有时候只能收到其中一个账号的通知。查看日志,丢失的账号通知,是正常的。

但是手机没有正确收到推送。

@elecV2
Copy link
Owner

elecV2 commented Dec 4, 2020 via email

@id77
Copy link
Author

id77 commented Dec 4, 2020 via email

@elecV2
Copy link
Owner

elecV2 commented Dec 4, 2020 via email

@id77
Copy link
Author

id77 commented Dec 4, 2020

image
image

看一下 Rss 有没有吧,如果没有就是没有通知,有的话可能是和 BARK 之间的通信有问题,也有可能是 BARK 限制短时间内的通知次数。

BARK

查看过BARK推送历史,的确没有

在 2020年12月4日,下午2:47,elecV2 notifications@github.com 写道:



通知方式是 IFTTT?BARK?RSS?

如果是 IFTTT ,可以打开 IFTTT 软件看一下通知记录,是否都正常推送了。

IFTTT 如果没有 message 信息,而只有 title 默认会通知失败。可以在 message 那一栏加一些固定字符,比如通知时间,确保一定有内容触发通知。

多账号的脚本,有时候只能收到其中一个账号的通知。查看日志,丢失的账号通知,是正常的。

但是手机没有正确收到推送。

@id77
Copy link
Author

id77 commented Dec 4, 2020

Feed 只能看到今天早上的记录。
我5点的双账号脚本通知不正常。

@elecV2
Copy link
Owner

elecV2 commented Dec 4, 2020 via email

@id77
Copy link
Author

id77 commented Dec 4, 2020

直接网页打开 rss 链接,应该可以看到全部记录,默认不清理。

如果不是很影响,就别管了,正常来说是不会丢通知的。

Feed 只能看到今天早上的记录。

我5点的双账号脚本通知不正常。

认真对比了,feed的记录有下午的,只不过时间晚几个点。记录也挺全。

怀疑是Bark这里有问题,我换回IFTTT用一天看看

其实还是有影响的,双账号如果那一个cookie过期会不知道。

@id77
Copy link
Author

id77 commented Dec 4, 2020

你那个 elecv2/elecv2p:arm64 镜像,没添加 tzdata

environment:
      - TZ=Asia/Shanghai

这个不生效,所以我feed时间不对

@id77
Copy link
Author

id77 commented Dec 5, 2020

换了IFTTT,还是丢通知

image
image

@elecV2
Copy link
Owner

elecV2 commented Dec 5, 2020 via email

@id77
Copy link
Author

id77 commented Dec 5, 2020

丢的是哪条?账号2的两条都丢了吗?

看一下 errors.log 有没有相关信息。

如果 rss 里有,而个别通知收不到,除了网络问题,暂时想不到其他原因。

换了IFTTT,还是丢通知

萌宠账号1没通知

只看到助力码api请求失败。但是日志都已经有账号1完整的通知信息了的,feed也有账号1的记录。

问题是在于推送这块。

[jd_pet.js error][2020/12/5 11:01:35]: $httpClient {"url":"http://api.turinglabs.net/api/v1/jd/pet/read/5/"} timeout of 5000ms exceeded
[jd_pet.js info][2020/12/5 11:01:35]: "request config error"

@id77
Copy link
Author

id77 commented Dec 5, 2020

你看下,两个推送都开了,还能不一样。

image
image

@elecV2
Copy link
Owner

elecV2 commented Dec 5, 2020 via email

@id77
Copy link
Author

id77 commented Dec 6, 2020

docker logs elecv2p -f

查看日志,发现有些脚本没有具体log,只有[runJSFile notify][2020-12-07 00:00:00.002]: run xxxx.js from task

没有
[xxxx...js notify][2020-12-07 00:05:42.644]: 日志内容

已经更新过docker镜像了。我查看了京东签到,双账号一个通知都没发出,bark、ifttt均没有推送,但两账号签到都完成了。

@elecV2
Copy link
Owner

elecV2 commented Dec 8, 2020 via email

@elecV2 elecV2 closed this as completed Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants