hobk / chatgpt-telebot

基于chatGPT使用nodejs搭建的telegram机器人
195 stars 55 forks source link

使用一段时间后,如api请求超时,程序会退出,可以优化下吗 #14

Open xibaluo opened 1 year ago

xibaluo commented 1 year ago

at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///root/chatgpt-telebot/node_modules/chatgpt/build/index.js:193:25 { cause: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (node:internal/deps/undici/undici:7967:28) at node:internal/deps/undici/undici:7925:50 at Immediate._onImmediate (node:internal/deps/undici/undici:7956:13) at process.processImmediate (node:internal/timers:476:21) { code: 'UND_ERR_CONNECT_TIMEOUT' } }

即使出错也不要退出,下次可以继续重试