Create a workflow using Durable Functions in Sandbox does work

Christopher Fryett 45 Reputation points
2024-08-22T21:01:13.08+00:00

After reviewing previous questions to the same issue and attempting to duplicate recommendations this particular exercise does not work. It would be nice if someone would update the exercise with the appropriate steps or assure the sandbox is correct.

2024-08-22T20:56:59.823 [Information] Executing 'Functions.HttpStart' (Reason='This function was programmatically called via the host APIs.', Id=1eb66bdb-da76-47f1-a0c0-422d6010528e)
2024-08-22T20:56:59.827 [Error] Executed 'Functions.HttpStart' (Failed, Id=1eb66bdb-da76-47f1-a0c0-422d6010528e, Duration=3ms)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.34.2\workers\node\dist\src\worker-bundle.js:2:63453)at Generator.next (<anonymous>)at C:\Program Files (x86)\SiteExtensions\Functions\4.34.2\workers\node\dist\src\worker-bundle.js:2:61778at new Promise (<anonymous>)at p (C:\Program Files (x86)\SiteExtensions\Functions\4.34.2\workers\node\dist\src\worker-bundle.js:2:61523)at t.InvocationModel.invokeFunction (C:\Program Files (x86)\SiteExtensions\Functions\4.34.2\workers\node\dist\src\worker-bundle.js:2:63260)at y.<anonymous> (C:\Program Files (x86)\SiteExtensions\Functions\4.34.2\workers\node\dist\src\worker-bundle.js:2:39015)at Generator.next (<anonymous>)
2024-08-22T20:58:53  No new trace in the past 1 min(s).

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

Accepted answer
  1. hossein jalilian 10,825 Reputation points Volunteer Moderator
    2024-08-22T23:20:39.1533333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    Make sure your HttpStart function looks something like this:

    const df = require('durable-functions');
    
    module.exports = async function (context, req) {
        const client = df.getClient(context);
        // Rest of your function code
    };
    
    

    Ensure your package.json includes the latest version of durable-functions , and if possible, try setting up a local development environment for Azure Functions to test your code outside the sandbox.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.