Description
Description:
This issue is to track a regression introduced in version 4.7.3 of the @azure/functions Node.js library.
Problem
Version 4.7.3 of @azure/functions upgraded the undici dependency from 5.x to 7.x because [email protected] reached EOL on April 30, 2024. However, this change introduces a breaking behavior:
[email protected] requires Node.js 20 or later
As a result, apps still running on Node.js <= 18 and using @azure/[email protected] will fail with the following runtime error:
Result: Failure
Exception: value.toWellFormed is not a function
Stack: TypeError: value.toWellFormed is not a function
at webidl.converters.USVString (node_modules/undici/lib/web/webidl/index.js:578:18)
Current Mitigation
The @azure/[email protected] package has now been deprecated on npm to prevent further adoption.
Apps should pin to an older version of @azure/functions (e.g., 4.7.2).
Affected apps need to be rebuilt and redeployed to ensure downgrade is applied.