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

Beta runtime version javascript functions are broken on Azure #575

Closed
nelak opened this issue Nov 3, 2017 · 1 comment
Closed

Beta runtime version javascript functions are broken on Azure #575

nelak opened this issue Nov 3, 2017 · 1 comment

Comments

@nelak
Copy link

nelak commented Nov 3, 2017

Trying to run something as simple as:

module.exports = function (context, req) {
    const htmlContent = `<html><body>Hello world</body></html>`
    context.res.setHeader('content-type', 'application/xml; charset=utf-8')
    context.res.setHeader('content-length', `${Buffer.from(htmlContent).length}`)
    context.res.raw(htmlContent);

Results in the following error:

2017-11-03T17:32:15.606 Exception while executing function: Functions.HttpTriggerJS. System.Private.CoreLib: One or more errors occurred. (Worker process with pid 8516 exited with code 1) (Worker process with pid 9788 exited with code 1) (Worker process with pid 8300 exited with code 1). Worker process with pid 8516 exited with code 1.

This is likely related to the same issue reported on the azure-functions-cli repository:
Azure/azure-functions-core-tools#280

Let me know if you need more information

@ahmelsayed
Copy link

This issue was moved to Azure/azure-functions-host#2126

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

2 participants