Durable Functions error on trigger following 30 Days Azure Challenge

Shapeshifter 66 Reputation points
2024-02-16T17:49:42.15+00:00

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.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,890 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,175 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Eric Bardes 40 Reputation points
    2024-09-02T08:30:27.4133333+00:00

    Referring to https://github.com/Azure/azure-functions-durable-js/issues/562 it seems that the issue is that latest version of function-durable package (3.1.0 currently) installed by default during step 9 of "Install the durable-functions npm package" is not compatible with version 2.x of the Azure Functions extension bundle which is installed by default on the Function App.

    using:

    npm install durable-functions@2.1.4
    

    did the trick on my end (until when???)

    1 person found this answer helpful.
    0 comments No comments

  2. Q&A Assist
    2024-02-16T17:49:42.1533333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message you are seeing suggests that there is an issue with the extraInputs property being undefined. This could be caused by a few different things, such as a missing or incorrect configuration setting. One possible solution is to ensure that you have the correct version of the Azure Functions Core Tools installed, as well as the correct version of the Durable Functions extension. You can also try updating your dependencies and rebuilding your project.

    It's worth noting that the error you are experiencing is not related to the fact that you are using node.js instead of C#. Durable Functions is available for both languages and the same concepts apply regardless of which language you use.

    References:

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.