azure-func-http
azure-func-http copied to clipboard
Azure Functions v4 support
When doing npm run build && func host start I get the following error:
Warning: Proxies are not supported in Azure Functions v4. Instead of 'proxies.json', try Azure API Management: https://aka.ms/AAfiueq
After trying to access the endpoint, for example: https://nestjstest1.azurewebsites.net/api
I get the following error:
Server Error
502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
Please add Azure Functions v4 support, which has been out since last year.
Reference:
https://techcommunity.microsoft.com/t5/apps-on-azure-blog/azure-functions-v4-versus-v3/ba-p/3276055
Would you like to create a PR for this feature?
There is a new v4 runtime for Node.js which makes the programming model more app-centric. It is in preview. I would like to update this package to work with the new programming model but I'm not sure what the previous issue in this thread would mean in terms of creating a pr.
Closing issue, I'm not working on anything Azure related anymore.
After hours of trying different things...
I managed to fix this error by using Azure Functions ~4, but with LINUX (node 18, 32bit). update: it seems it also worked for Windows, node 20, 64bit.
But only using an old version for azure functions...
"@azure/functions": "^1.0.3",
Hopefully this will help somebody.
Please don't abandon this project 😢