azure-func-http icon indicating copy to clipboard operation
azure-func-http copied to clipboard

Azure Functions v4 support

Open AndrzejKomarnicki opened this issue 3 years ago • 10 comments

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

AndrzejKomarnicki avatar Jul 03 '22 14:07 AndrzejKomarnicki

Would you like to create a PR for this feature?

kamilmysliwiec avatar Feb 09 '23 09:02 kamilmysliwiec

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.

diberry avatar Apr 19 '23 12:04 diberry

Closing issue, I'm not working on anything Azure related anymore.

AndrzejKomarnicki avatar Apr 27 '23 15:04 AndrzejKomarnicki

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 😢

johnykes avatar Nov 05 '23 20:11 johnykes