diff --git a/src/main.ts b/src/main.ts index d76308c..db8e4d6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -101,12 +101,13 @@ server.post('/', async (req, res) => { overrides: overrides }) - } else if (line.includes('ETIMEDOUT') || line.includes('Command failed')) { + } else if (line.includes('ETIMEDOUT')) { await fs.rm(stlPath) return createErrorResponse(res, { title: 'File is taking too long to process', status: 400, - detail: `The file you are trying to process is too large (${req.body.length}o) to be processed in less than 60 secs`, + detail: `The file you are trying to process takes too long to be processed`, + processingTimeoutMillis: 60000, fileId: file, config: req.query?.config ?? 'config', fileSize: req.body.length,