I’ve started seeing some random errors in my production logs, trying to dynamic import an
Error: ENOENT: no such file or directory, open '/built_app/programs/web.browser/dynamic/%3Canonymous%3E' at Object.fs.openSync (fs.js:648:18) at fs.readFileSync (fs.js:553:33) at read (packages/dynamic-import.js:173:29) at walk (packages/dynamic-import.js:124:14) at Object.keys.forEach.name (packages/dynamic-import.js:131:22) at Array.forEach (<anonymous>) at walk (packages/dynamic-import.js:129:23) at readTree (packages/dynamic-import.js:152:10) at IncomingMessage.request.on (packages/dynamic-import.js:88:33) at emitNone (events.js:105:13) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1056:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickDomainCallback (internal/process/next_tick.js:218:9)
The errors come in groups of 3 in quick succession. I’ve never seen these errors in development or staging, and in production I’ve not been able to trigger them myself, after trying all routes. Nothing’s changed on my routes or dynamic importing recently either, so I’m not sure why it’s only started in the past week or so.
I’ve checked through all my
import(...).then(....) calls and they look good. I’m using @manuel’s fantastic viewmodel which does some of it’s own lazy loading, but I’m not sure how that can be trying to load an
Any ideas? Or is there a way I can catch these errors in production and log which URL they’re coming from, or which user is logged in, etc?
Could it be a bot trying random fetches?
I’m using Meteor 18.104.22.168 with mup on AWS, fully React.
Any thoughts greatly appreciated! Thanks.