I am running a node js app on the free tier but i keep getting this error with running a puppeteer script
Nov 2 02:25:02 AM node:internal/process/promises:289
Nov 2 02:25:02 AM triggerUncaughtException(err, true /* fromPromise */);
Nov 2 02:25:02 AM ^
Nov 2 02:25:02 AM
Nov 2 02:25:02 AM [Error: ENOENT: no such file or directory, open ‘./a/b/myFile.png’] {
Nov 2 02:25:02 AM errno: -2,
Nov 2 02:25:02 AM code: ‘ENOENT’,
Nov 2 02:25:02 AM syscall: ‘open’,
Nov 2 02:25:02 AM path: ‘./a/b/myFile.png’
Nov 2 02:25:02 AM }
What is strange is that the script works perfectly offline. I am wondering if the problem has to do with the fact that the free tier doesn’t have persistent storage and as such the file is deleted before the script has a chance to work on it
What could be the cause? I’m open to ideas since the script just fails silently, trycatch, debug statements etc are of no help