Open miszu opened 2 months ago
I am experiencing exactly the same error, with exactly the same settings in the action. @miszu did you find a solution?
I am experiencing exactly the same error, with exactly the same settings in the action. @miszu did you find a solution?
@Yvand unfortunately I did not find a solution and gave up for the time being :(
I checked the deplyment logs on the app service side, and it looks like a dumb warning on a deprecated package causes the failure:
[ // removed irrelevant content
{
"log_time": "2024-07-02T13:08:44.7964544Z",
"id": "335bd5f8-5624-4bf9-823c-5b500503e551",
"message": "npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)\\nnpm notice \\nnpm notice New minor version of npm available! 10.2.4 -> 10.8.1\\nnpm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.1>\\nnpm notice Run `npm install -g npm@10.8.1` to update!\\nnpm notice\\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 20.11.1",
"type": 2
},
{
"log_time": "2024-07-02T13:08:44.7968642Z",
"id": "335bd5f8-5624-4bf9-823c-5b500503e551",
"message": "Failed during oryx build due to npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)\\nnpm notice \\nnpm notice New minor version of npm available! 10.2.4 -> 10.8.1\\nnpm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.1>\\nnpm notice Run `npm install -g npm@10.8.1` to update!\\nnpm notice\\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 20.11.1",
"type": 2
},
{
"log_time": "2024-07-02T13:08:44.8228944Z",
"id": "335bd5f8-5624-4bf9-823c-5b500503e551",
"message": "Deployment failed with Error: npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)\\nnpm notice \\nnpm notice New minor version of npm available! 10.2.4 -> 10.8.1\\nnpm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.1>\\nnpm notice Run `npm install -g npm@10.8.1` to update!\\nnpm notice\\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 20.11.1",
"type": 2
}
]
@miszu and @Yvand - The error occurs during oryx build so, it is not an issue with this GitHub action but some dependency in your package itself is deprecated and so oryx build is failing. Please correct the version is your app.
You are totally right, I can repro the same warning message on my machine if I delete folder node_modules
and then run npm install
.
Based on the package-lock.json
, it is @azure/cosmos 4.0.0
that explicitly depends on debug 4.1.1
, hence causing the warning message.
Thank you for your very useful input!
I see that this PR by @patelchandni https://github.com/Azure/functions-action/pull/229 adds support for Flex Consumption plan of Azure Functions. I've tried deploying my Node Azure Function app to Flex Consumption with this yml actio:
but this fails with:
Am I doing something wrong? I'd appreciate any help and would be happy to provide more logs/test solutions :)