Skip to content

Manual change required to use node runtime in consumption plan function app #3584

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

Closed
GuyHarwood opened this issue Oct 10, 2018 · 4 comments
Closed

Comments

@GuyHarwood
Copy link

GuyHarwood commented Oct 10, 2018

Investigative information

Please provide the following:

  • Timestamp: None given
  • Function App version (1.0 or 2.0): v2
  • Function App name: mtc-test
  • Function name(s) (as appropriate): guy
  • Invocation ID: none given
  • Region: UK South
  • Host Type: Consumption plan (windows)
  • Language: Javascript
  • Node Runtime: 10.6.0

Repro steps

  • create boilerplate HttpTrigger and set language to Javascript
  • create Function App set to consumption plan
  • deploy function as package via dropbox
  • open console from portal, observe that function package has been extracted correctly into wwwroot and functions within app are listed in portal
  • go to HttpTrigger function
  • go to 'test' panel and set HTTP VERB to 'get'
  • run function
  • observe 404
  • try function from raw URL, in this instance it would be https://mtc-test.azurewebsites.net/api/guy?name=roger
  • observe 404

Expected behavior

returns 200 OK and 'Hello roger'

Actual behavior

Provide a description of the actual behavior observed.

returns 404 not found

workaround

manually change FUNCTIONS_WORKER_RUNTIME from dotnet to node

@GuyHarwood GuyHarwood changed the title Receiving 404 after deploying http trigger function to consumption plan Manual change required to use node runtime in consumption plan function app Oct 10, 2018
@mhoeger
Copy link
Contributor

mhoeger commented Oct 10, 2018

@hartra344 - can you comment on the logic used to choose FUNCTIONS_WORKER_RUNTIME? Would FUNCTIONS_WORKER_RUNTIME have to be defined in local.settings.json, or does a Dropbox deployment even look for this?

@mhoeger mhoeger added this to the Active Questions milestone Oct 10, 2018
@GuyHarwood
Copy link
Author

GuyHarwood commented Oct 10, 2018

@mhoeger according to the documentation on host.json, there appears to be nowhere to define the runtime.

It would make sense to do so, given that you can only use one language across the function app, and shouldnt have to manually set this value in the portal.

Also - you do explicitly set the 'Runtime stack' when creating a function via the portal, so this should propagate through to the created function app.

@ChristianWeyer
Copy link

I have a similar issue with a freshly created JavaScript HTTP trigger function in VS Code, and then deployed to Azure.
Also always gives me a 404 - and there is no error showing up in App Insights.

@mhoeger
Copy link
Contributor

mhoeger commented Oct 16, 2018

I'm going to be closing this issue in favor of this tracking issue: #3120

Adding the FUNCTIONS_WORKER_RUNTIME setting to host.json (and therefore source controlled and deployed code) will solve this. Thanks!

@mhoeger mhoeger closed this as completed Oct 16, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants