Open bachuv opened 4 months ago
"version": "[4.*, 4.13.0)"
This doesn't look right for two reasons:
v3.29.0 or v4.12.0.
Is that actually right?
Edit: Found the definition here:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#extensionbundle
Apparently that trailing ) is correct, and means "up to but not including".
Workaround. Updated my code to pre-serialize the data to a string.
await client.startNew(orchestratorName, { input: options });
became
await client.startNew(orchestratorName, { input: JSON.stringify(options) });
and
const runBot: ActivityHandler = async (input: MyType): Promise<MyType> => {
became
const runBot: ActivityHandler = async (inputJson: string): Promise<string> => {
Known regression notice: Activity input fails to deserialize when the input is an array
Error description: We have just noticed that users are experiencing errors in Durable Functions JS apps with an exception that includes
Exception binding parameter '<your activity parameter name>'
andUnexpected character encountered while parsing value
.This issue started with Durable Functions version v2.13.0. The following extension bundles are affected:
Repro: Use an array type as an input to your activity function.
Incoming solution: We're issuing a hotfix extension bundles release that will automatically fix any apps that are hitting the issue described here. It will take a few days to roll out.
Immediate Mitigation Options: There are two ways to fix this issue: Pinning the extension bundles version or manually installing the working Durable Functions extension version.
1) Pinning the extension bundles version - Update the extension bundles version in host.json to use v3.29.0 or v4.12.0.
Example:
2) Manually install Durable Functions extension version v2.12.0 or lower by following these instructions.