Node worker did not start properly ('30' second timeout) #659
Replies: 7 comments 1 reply
-
I am having the same problem. Has anyone been able to solve this problem? |
Beta Was this translation helpful? Give feedback.
-
I found a workaround. I figured it out by opening up Microsoft.Azure.Workflows.Languages.Edge.JScript.Engines.dll and the class NodeProcessHandler. I found that out by increasing the log level for the func.exe by adding AzureFunctionsJobHost__logging__LogLevel__Default: Trace in local.settings.json. You could run the Analysis server yourself and have the port in the local.settings.json.
the last number is the timeout in milliseconds for the js analysis service. You could increase that if you want. I suspect the timeout is not passed along properly. edit: had to escape some characters |
Beta Was this translation helpful? Give feedback.
-
So, I dug a little deeper and found the reason why the node js analysis service is not starting. node index.js 60461 334681,4167 In index.js the line let timeout = setTimeout(() => process.kill(process.pid, 'SIGTERM'), timeoutDurationInMilliseconds); immediately invokes, because the string 334681,4167 is being converted due to implicit type coercion to 0. Thus invoke immediately: |
Beta Was this translation helpful? Give feedback.
-
Some extra information on this:
Do these steps as mentioned before:
Then:
|
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has been open for 30 days with no activity. |
Beta Was this translation helpful? Give feedback.
-
I tried another workaround using WSL. That works fine for me. I installed all the necessary packages inside linux (currently I'm using Ubuntu 20.04). From Linux I'm going start VSCode and I have the same Developer experience. No problems with Inline Scripts!! |
Beta Was this translation helpful? Give feedback.
-
VS Code version: 1.90.2 I still get this issue when running my workflow locally (attaching to vscode)
I have resolved this by using following (work-around):
I want to clarify that I did no optimization for all these steps, just a basic workaround for not using following command each time after my LogicApp is being build. Other suggestions are welcome. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Logic App Standard workflow that includes the Inline Code action. Starting this week I get the following exception when I try to run the logic app locally. This used to work fine for at least a week or three. I don't know what changed or what I can do to further investigate. I verified I have the right NodeJS version installed.
VS Code version: 1.68.1
Node.js: 16.13.0
Azure Logic Apps (Standard) extension: 1.0.19
Function Runtime Version: 4.0.1.1681
OS: Windows_NT x64 10.0.19044
Beta Was this translation helpful? Give feedback.
All reactions