ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • twit 에러 핸들링
    아리스봇/삽질로그 2022. 4. 13. 11:01
    node:events:504
          throw er; // Unhandled 'error' event
          ^
    
    Error: aborted
        at connResetException (node:internal/errors:691:14)
        at TLSSocket.socketCloseListener (node:_http_client:402:19)
        at TLSSocket.emit (node:events:538:35)
        at node:net:687:12
        at TCP.done (node:_tls_wrap:580:7)
    Emitted 'error' event on StreamingAPIConnection instance at:
        at IncomingMessage.<anonymous> (/home/*******/*******/node_modules/twit/lib/streaming-api-connection.js:126:14)
        at IncomingMessage.emit (node:events:526:28)
        at emitErrorNT (node:internal/streams/destroy:157:8)
        at emitErrorCloseNT (node:internal/streams/destroy:122:3)
        at processTicksAndRejections (node:internal/process/task_queues:83:21) {
      code: 'ECONNRESET'
    }
    [nodemon] app crashed - waiting for file changes before starting...

    트위터 api로 라이브스트림을 가져오는 기능을 쓰다 보면 종종 이런 식으로 에러를 뱉으면서 죽습니다.

    에러 리스너 주면 말 잘 듣습니다.

    '아리스봇 > 삽질로그' 카테고리의 다른 글

    0430 삽질로그  (0) 2022.04.30
    for / indexOf  (0) 2022.04.29
    0408 삽질로그  (0) 2022.04.08
    22-04-05  (0) 2022.04.05
    22-04-02~03  (0) 2022.04.03

    댓글

Designed by Dunamis

Contact : admin@duna.me

업무용 연락처 : 010-9069-1045 (카카오톡)