Something wrong with steps detection

I have Send HTTP Request step:

After I use the result of this request:

When I test this step I get an error:

Error: Cannot find module '/root/codes/step_6/index.js'
Require stack:
- /root/main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at <anonymous> (webpack://activepieces/engine/src/lib/executors/code-executer.ts:8:75) {
  requireStack: [ '/root/main.js' ]

Maybe this is important, but these peaces are inside Branch (False)

Same here. Did it get resolved?
After duplicating the code piece, the issue occured, and it’s the same even when creating a new piece.

Upon further examination, it seems that even when not duplicated, the number of Code pieces exceeding a little may be the cause.
Even when opening a new Code and immediately retesting with ‘return true,’ the same error continues to occur after that piece.
The existing Codes remain the same. It seems that this issue arises roughly when there are around 5 Code pieces or so. Sometimes it’s more than 7~8.

The only solution i found is just restart the container.

Hi @Katcher_Ris

Which version are you running?

my version was 0.14.0.
Since restarting the Docker container 11 days ago, there have been no issues.
It’s possible that not using multiple code pieces as before could be the reason.
If it occurs again, I will report it.

This is fixed for sure since 0.15.0

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.