I have a nodejs application. there are 3 functions and 2 HTTP calls.
here is my function.json for the HTTP route:
{
"bindings": [
{
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["post"]
},
{
"type": "http",
"direction": "out",
"name": "res"
},
{
"name": "firstStep",
"type": "serviceBus",
"queueName": "firststepqueue",
"connection": "MyServiceBus",
"direction": "out"
}
],
"scriptFile": "../dist/firstStep/index.js"
}
and here when I want to bind:
context.bindings.firstStep = message;
context.res = {
status: 200,
body: {"message": "success"},
headers: {
'Content-Type': 'application/json'
}
};
context.done();
But the queues are not working in Azure.
it works in my local when I run func start
.
there is no error!