Intermittent Workflow Error: "Cannot find module" when module exists

Hi, I'm very intermittently experiencing the same issue stated on this post. Workflow Errors importing custom javascript libraries

My workflow runs flawlessly most of the time but I noticed it stopped due to this unexpected error around not finding the module axios, when the module has been imported and ran plenty already. Could you look into this please?

Please see attached screenshots.



Hi @mr-media,

Apologies for the issue, that is a really odd that it works fine the majority of the time but sometimes can't find the package that is installed.

Are you self hosted or on the cloud? You may just need to uninstall and re-install the package to ensure the caching system is able to direct the code executor to the axios dependency at code runtime :thinking:

Hi Jack,

It's pretty rare now, hardly seeing it but it's on the cloud.

1 Like

Ah ok,

That is just so odd that is still happen sometimes :face_with_monocle:

Maybe there are some factors that are causing the module to load in slower than other times, and the code starts executing before the reference to the module has been established in the code sandbox environment :thinking:

Let me know if you are able to record the request-ID of a query when it occurs and I can check your org's logs on the cloud to see if we can find more details on this.

Thanks Jack, I've scanned through our logs and we havn't had any recently. I'll keep an eye out and close the ticket discussion if they stop!

1 Like

Had another case of this for workflow d56b9a41-e481-48ea-a699-dadb10442836 with workflow run ID 783057c2-0af3-438a-8e2e-4432b7cc1cc1.

Any support would be really appreciated!

One more example for workflow d56b9a41-e481-48ea-a699-dadb10442836 with workflow run id 43724dee-9750-4602-9090-f643a30b506a


Hey @mr-media,

I was looking through our data dog logs with both of those workflow IDs and run IDs and couldn't find any errors, just 200s and 304 :thinking: super weird.

Given that it is intermittent I was not able to reproduce on my end using the axios library. I am stumped but if this happens more often or if I get any more information on this issue I will follow up in this thread.