{"action":"opened","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-stack/issues/64","repository_url":"https://api.github.com/repos/vert-x3/vertx-stack","labels_url":"https://api.github.com/repos/vert-x3/vertx-stack/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-stack/issues/64/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-stack/issues/64/events","html_url":"https://github.com/vert-x3/vertx-stack/issues/64","id":195945724,"number":64,"title":"vertx3-eventbus-client callback function not called when access is denied","user":{"login":"thurber","id":5023771,"avatar_url":"https://avatars.githubusercontent.com/u/5023771?v=3","gravatar_id":"","url":"https://api.github.com/users/thurber","html_url":"https://github.com/thurber","followers_url":"https://api.github.com/users/thurber/followers","following_url":"https://api.github.com/users/thurber/following{/other_user}","gists_url":"https://api.github.com/users/thurber/gists{/gist_id}","starred_url":"https://api.github.com/users/thurber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thurber/subscriptions","organizations_url":"https://api.github.com/users/thurber/orgs","repos_url":"https://api.github.com/users/thurber/repos","events_url":"https://api.github.com/users/thurber/events{/privacy}","received_events_url":"https://api.github.com/users/thurber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-15T23:40:03Z","updated_at":"2016-12-15T23:40:03Z","closed_at":null,"body":"Hi, thanks for your library, I have enjoyed using it!\r\n\r\nI've found the following issue has hampered me in certain use cases, and I think it might be a bug:\r\n\r\nWhen attempting to send a message from a vertx3-eventbus-client to a Vertx EventBus bridge, if the bridge does not allow the message, the callback function passed to the send method is not called. I would expect it to be called with an error. Instead, only the client's onerror handler is called.\r\n\r\nFor example:\r\n\r\n```javascript\r\n\r\nvar EventBus = require('vertx3-eventbus-client');\r\n\r\nvar eb = new EventBus('http://localhost:8080/eventbus');\r\n\r\neb.onopen = function() {\r\n  // the bridge at localhost:8080/eventbus doesn't permit 'some/address'\r\n  eb.send('some/address', { key: 'value' }, function(err, res) {\r\n    console.log('Callback err and res: ', err, res); // this doesn't happen\r\n  });\r\n\r\n}\r\n\r\neb.onerror = function(e) {\r\n  console.log('General error: ', e); // this does happen\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"thurber"}}