-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
helpExtra attention is neededExtra attention is neededtype: bugSomething isn't working.Something isn't working.work: complexThe situation is complex, emergent practices used.The situation is complex, emergent practices used.
Description
从 2023-10-02 10时(UTC+8)开始,持续访问超时,出问题的通知来源不定。至今(2023-10-09)仍未解决。
file:///…/bulletin-issues-transferred/node_modules/node-fetch/src/index.js:108
reject(new FetchError(`request to ${request.url} failed, reason: ${error.message}`, 'system', error)>
^
FetchError: request to https://ice.bit.edu.cn/xxfw/tzgg1/index.htm failed, reason: connect ETIMEDOUT 114.247.56.92:443
在校外本地运行常常也如此,获取十几个通知来源后就超时。在校内本地运行正常。
可能的解决方案
- 改用 sindresorhus/got: 🌐 Human-friendly and powerful HTTP request library for Node.js,它支持指定超时时长、自动重试等。
- 从并行
Promise.all()改为串行,或者 sindresorhus/p-all: Run promise-returning & async functions concurrently with optional limited concurrency 。 - 程序从 crontab 反复运行改为长期运行,不再同时获取通知。
Metadata
Metadata
Assignees
Labels
helpExtra attention is neededExtra attention is neededtype: bugSomething isn't working.Something isn't working.work: complexThe situation is complex, emergent practices used.The situation is complex, emergent practices used.