Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Functions v4 support #934

Open
AndrzejKomarnicki opened this issue Jul 3, 2022 · 4 comments
Open

Azure Functions v4 support #934

AndrzejKomarnicki opened this issue Jul 3, 2022 · 4 comments

Comments

@AndrzejKomarnicki
Copy link

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

@kamilmysliwiec
Copy link
Member

Would you like to create a PR for this feature?

@diberry
Copy link

diberry commented Apr 19, 2023

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.

@AndrzejKomarnicki
Copy link
Author

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

@johnykes
Copy link

johnykes commented Nov 5, 2023

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 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants