node.js - Access a Service Bus Queue from a Custom API -


i have azure service bus queue set rest access. set queue accessible , can add messages c# command line client. want create list of apis mobile apps interact various parts of cloud solution. problem can't access queue custom api. seems straight forward enough.

exports.get = function(request, response) {     var accountname = "myservicebusnamespace"; var accountkey = "servicebuskey";  var servicebusservice = azure.createservicebusservice(accountname, accountkey); servicebusservice.createqueueifnotexists("mysbqueuename", function (error) {     if (error) {         console.log(error);     } });  servicebusservice.sendqueuemessage("mysbqueuename", "message", function (error, res) {     if (error) {         console.log(error);     } }); }; 

the error logged is:

{ [error: getaddrinfo enotfound] code: 'enotfound', errno: 'enotfound', syscall: 'getaddrinfo' } 

which indicates there's problem getting address. queue member of myservicebusnamespace service bus , account key of rootmanagesharedaccesskey. code running custom api in azure. looks i'm using wrong credentials/path/host can't figure out how correct that.

stephen


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -