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.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Eric Bardes 95 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???)

    11 people found this answer helpful.

  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.