Giter VIP home page Giter VIP logo

btsnotify's Issues

並未及時檢驗出BTS方案

根據當時的情況
發出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

新增測試

新增測試程式,讓程式不會每次都爆開QQ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.