MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.44k forks source link

Description outdated #119639

Open AlexanderMakarov opened 8 months ago

AlexanderMakarov commented 8 months ago

curl -X POST https://{your-function-app-name}.azurewebsites.net/api/orchestrators/{functionName} --header "Content-Length: 0" doesn't work for me - it returns nothing with 500 HTTP code.

In HTTP trigger function invocation I see

Result: Failure Exception: 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\DurableFunctionsHttpStart1\index.js:4:23) at t.InvocationModel.<anonymous> (C:\Program Files (x86)\SiteExtensions\Functions\4.29.1\workers\node\dist\src\worker-bundle.js:2:61152) at Generator.next (<anonymous>) at C:\Program Files (x86)\SiteExtensions\Functions\4.29.1\workers\node\dist\src\worker-bundle.js:2:59477 at new Promise (<anonymous>) at p (C:\Program Files (x86)\SiteExtensions\Functions\4.29.1\workers\node\dist\src\worker-bundle.js:2:59222) at t.InvocationModel.invokeFunction (C:\Program Files (x86)\SiteExtensions\Functions\4.29.1\workers\node\dist\src\worker-bundle.js:2:60959) at y.<anonymous> (C:\Program Files (x86)\SiteExtensions\Functions\4.29.1\workers\node\dist\src\worker-bundle.js:2:38494) at Generator.next (<anonymous>)

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AlexanderMakarov commented 8 months ago

Solved for myself - changed in package.json content to

    "dependencies": {
        "durable-functions": "2.1.4"
    }

and "/api/orchestrators/{functionName}" started to work - provides me with list of URL-s.

Azure sets function code templates of v3 option while documentation insists on v4 model and that v3 is deprecated. V4 I wasn't able to make work, BTW. So "durable-functions" v3+ is probably doesn't work as well so need to use previous versions, aka "deprecated".

Naveenommi-MSFT commented 8 months ago

@AlexanderMakarov Thank you for bringing this to our attention. I've delegated this to content author @ggailey777, who will review it and offer their insightful opinions.

Naveenommi-MSFT commented 8 months ago

@ggailey777 Could you please review add comments on this, update as appropriate.