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

並未及時檢驗出BTS方案 #1

Open
dan3612812 opened this issue Jul 22, 2021 · 0 comments
Open

並未及時檢驗出BTS方案 #1

dan3612812 opened this issue Jul 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@dan3612812
Copy link
Owner

根據當時的情況
發出http code 503為https://apple.com/tw/shop/goto/educationrouting
頁面的顯示為
PreviewComeSoon

可以看到log在06:00:30 已經無抱錯(上述網址已正常導向不返回503)

但一直到停止timer時間為 06:08:05
image

telegram發出通知時間為
image

推測

產生太多request(其中response的判斷是異步執行),但印出時間為同步所以導致log輸出的情況

以下是該時間點左右的log

2021/07/16 06:00:20.443
(node:56484) UnhandledPromiseRejectionWarning: Error: Request failed with status code 503
    at createError (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\createError.js:16:15)
    at settle (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\settle.js:17:12)
    at IncomingMessage.handleStreamEnd (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\adapters\http.js:260:11)
    at IncomingMessage.emit (events.js:387:35)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
(node:56484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5757)
2021/07/16 06:00:25.444
(node:56484) UnhandledPromiseRejectionWarning: Error: Request failed with status code 503
    at createError (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\createError.js:16:15)
    at settle (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\settle.js:17:12)
    at IncomingMessage.handleStreamEnd (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\adapters\http.js:260:11)
    at IncomingMessage.emit (events.js:387:35)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
(node:56484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5759)
2021/07/16 06:00:30.444
2021/07/16 06:00:35.446
2021/07/16 06:00:40.448
2021/07/16 06:00:45.459
2021/07/16 06:00:50.473
2021/07/16 06:00:55.476
2021/07/16 06:01:00.485
2021/07/16 06:01:05.492
@dan3612812 dan3612812 added the bug Something isn't working label Jul 22, 2021
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

1 participant