I'm doing the Azure 30 days challenge and am getting an error with module 5, specifically unit 4- Exercise - Create a workflow using Durable Functions
I create all 3 functions as specified, but on triggering the durable function with a URL similar to this:
https://30days-m5-f2.azurewebsites.net/api/orchestrators/OrchFunction?code=coix*****1OQ==
I see the following error:
2024-02-16T12:50:24.766 [Information] Executing 'Functions.HttpStart' (Reason='This function was programmatically called via the host APIs.', Id=96a4e220-6633-47b5-9bd6-87c557fcf098)
2024-02-16T12:50:24.775 [Error] Executed 'Functions.HttpStart' (Failed, Id=96a4e220-6633-47b5-9bd6-87c557fcf098, Duration=8ms)Result: FailureException: Cannot read properties of undefined (reading 'extraInputs')Stack: TypeError: Cannot read properties of undefined (reading 'extraInputs')at Object.getClient (C:\home\site\wwwroot\node_modules\durable-functions\lib\src\durableClient\getClient.js:11:40)at module.exports (C:\home\site\wwwroot\HttpStart\index.js:4:23)at t.InvocationModel.<anonymous> (C:\Program Files (x86)\SiteExtensions\Functions\4.30.0\workers\node\dist\src\worker-bundle.js:2:61152)at Generator.next (<anonymous>)at C:\Program Files (x86)\SiteExtensions\Functions\4.30.0\workers\node\dist\src\worker-bundle.js:2:59477at new Promise (<anonymous>)at p (C:\Program Files (x86)\SiteExtensions\Functions\4.30.0\workers\node\dist\src\worker-bundle.js:2:59222)at t.InvocationModel.invokeFunction (C:\Program Files (x86)\SiteExtensions\Functions\4.30.0\workers\node\dist\src\worker-bundle.js:2:60959)at y.<anonymous> (C:\Program Files (x86)\SiteExtensions\Functions\4.30.0\workers\node\dist\src\worker-bundle.js:2:38494)at Generator.next (<anonymous>)
I believe my problem with missing/undefined 'extraInputs' is similar to the one described in this question, but I don't think that person is creating their code in the portal as I am, and I'm unable to try and adapt the given answer to what I am doing on the challenge.
If this problem is related to the step of installing the npm package, then that may be a problem in itself. There are definitely a whole load of packages in the npm_modules folder after the install. However, I am unable to update npm to the recommended 10.4.0 without updating node itself, which looks impossible in the console. Tried to update to the version before (v9.something), but that didn't take for some reason.
I'm a .NET backend dev by trade, and being forced to use node.js (of which I know nothing) rather than C# is not helping. One of the reasons I'm looking to learn Azure Functions is so I can concentrate on code without most of the nasty config, so I'm especially frustrated here.
Help gratefully appreciated.