diff --git a/src/app.ts b/src/app.ts index aeca5829..fd1c29b1 100644 --- a/src/app.ts +++ b/src/app.ts @@ -121,11 +121,25 @@ export class GBServer { }); process.on('unhandledRejection', (err, p) => { - GBLogEx.error(0,`GBREJECTION: ${GBUtil.toYAML(err)}`); + + let bypass = false; + let res = err['response']; + if (res) { + if (res?.body?.error?.messages?.startsWith('Failed to send activity: bot timed out')){ + bypass = true; + } + } + + if(!bypass){ + GBLogEx.error(0,`GBREJECTION: ${GBUtil.toYAML(err)}`); + } }); // Creates working directory. + + + process.env.PWD = process.cwd(); const workDir = Path.join(process.env.PWD, 'work'); if (!fs.existsSync(workDir)) {