Azure / azure-functions-durable-extension

Durable Task Framework extension for Azure Functions
MIT License
711 stars 263 forks source link

Exception binding parameter - Unexpected character encountered while parsing value #2734

Open gpa opened 5 months ago

gpa commented 5 months ago

We suffer from a bug introduced in v2.13.0, downgrading to 2.12.0 resolves the issue. Some durable activities are not able to start.

Exception while executing function: Functions.DA_update-request. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'name'. Newtonsoft.Json: Unexpected character encountered while parsing value: {. Path '', line 1, position 1.
{
  "bindings": [
    {
      "name": "name",
      "type": "activityTrigger",
      "direction": "in"
    },
    {
      "name": "starter",
      "type": "orchestrationClient",
      "direction": "in"
    }
  ],
  "disabled": false,
  "scriptFile": "../../../dist/DA_update-request/index.js"
}

We use node with "durable-functions": "2.1.3" HostInstanceId | 29fab7d7-b390-4fb1-901a-c5ea53c87a5a InvocationId | 18f88ca9-3785-49e6-a43e-65110795fb2b

arjunkomath commented 4 months ago

Can confirm reverting to function extension version 3.29.0 fixed the issue.

Update host.json

"extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.29.0]"
}