You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My bot keep crashing randomly, tried to debug it on test but it's never fails on test.
this is the error code on production
2022-10-01T06:51:46.515767996Z app[web.1]: Error [ERR_HTTP_HEADERS_SENT]: Cannot render headers after they are sent to the client
2022-10-01T06:51:46.515773387Z app[web.1]: at new NodeError (node:internal/errors:387:5)
2022-10-01T06:51:46.515778488Z app[web.1]: at ServerResponse.writeHead (node:_http_server:335:13)
2022-10-01T06:51:46.515783650Z app[web.1]: at /app/node_modules/telegraf/lib/core/network/webhook.js:48:17 {
2022-10-01T06:51:46.515788982Z app[web.1]: code: 'ERR_HTTP_HEADERS_SENT'
2022-10-01T06:51:46.515794155Z app[web.1]: }
The bot never crash on test or when the traffic is low.
My bot keep crashing randomly, tried to debug it on test but it's never fails on test.
this is the error code on production
The bot never crash on test or when the traffic is low.
telegraf/src/core/network/webhook.ts
Lines 51 to 55 in 77fc227
This could probably because it catch error when
res.end()
is failing, but still trying do it again, idk.The text was updated successfully, but these errors were encountered: