We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Request's body is a <Buffer> instead of object in Azure Function's Runtime Beta. This works fine in the Cloud (which I suppose is running Runtime 1.x
<Buffer>
Try to run the boilerplate Javascript code in the Runtime beta:
module.exports = function (context, req) { context.log('JavaScript HTTP trigger function processed a request.'); context.log(context.req.body.name); if (req.query.name || (req.body && req.body.name)) { context.res = { // status: 200, /* Defaults to 200 */ body: "Hello " + (req.query.name || req.body.name) }; } else { context.res = { status: 400, body: "Please pass a name on the query string or in the request body" }; } context.done(); };
The context.log(context.req.body.name) should log:
context.log(context.req.body.name)
2018-05-21T17:41:12.509 [Info] daniel
Instead, it's logging:
<Buffer 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 33 30 38 32 35 30 31 33 36 35 39 30 36 31 38 38 37 30 38 32 36 32 ... >
This scenario works just fine under the Runtime 1.x running on Azure Functions.
The text was updated successfully, but these errors were encountered:
This issue was moved to Azure/azure-functions-nodejs-worker#76
Sorry, something went wrong.
No branches or pull requests
Request's body is a
<Buffer>
instead of object in Azure Function's Runtime Beta. This works fine in the Cloud (which I suppose is running Runtime 1.xRepro steps
Try to run the boilerplate Javascript code in the Runtime beta:
Expected behavior
The
context.log(context.req.body.name)
should log:Actual behavior
Instead, it's logging:
Known workarounds
This scenario works just fine under the Runtime 1.x running on Azure Functions.
The text was updated successfully, but these errors were encountered: