{"action":"closed","issue":{"url":"https://api.github.com/repos/Nexmo/nexmo-cli/issues/123","repository_url":"https://api.github.com/repos/Nexmo/nexmo-cli","labels_url":"https://api.github.com/repos/Nexmo/nexmo-cli/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/Nexmo/nexmo-cli/issues/123/comments","events_url":"https://api.github.com/repos/Nexmo/nexmo-cli/issues/123/events","html_url":"https://github.com/Nexmo/nexmo-cli/issues/123","id":215591688,"number":123,"title":"Update to use nexmo-node v2.0.0 and check error callbacks","user":{"login":"leggetter","id":328367,"avatar_url":"https://avatars0.githubusercontent.com/u/328367?v=3","gravatar_id":"","url":"https://api.github.com/users/leggetter","html_url":"https://github.com/leggetter","followers_url":"https://api.github.com/users/leggetter/followers","following_url":"https://api.github.com/users/leggetter/following{/other_user}","gists_url":"https://api.github.com/users/leggetter/gists{/gist_id}","starred_url":"https://api.github.com/users/leggetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leggetter/subscriptions","organizations_url":"https://api.github.com/users/leggetter/orgs","repos_url":"https://api.github.com/users/leggetter/repos","events_url":"https://api.github.com/users/leggetter/events{/privacy}","received_events_url":"https://api.github.com/users/leggetter/received_events","type":"User","site_admin":false},"labels":[{"id":366242335,"url":"https://api.github.com/repos/Nexmo/nexmo-cli/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Nexmo/nexmo-cli/milestones/2","html_url":"https://github.com/Nexmo/nexmo-cli/milestone/2","labels_url":"https://api.github.com/repos/Nexmo/nexmo-cli/milestones/2/labels","id":2401175,"number":2,"title":"0.3.4","description":"* Update to Nexmo Node library 2.0.0\r\n* Support for non-voice applications","creator":{"login":"cbetta","id":7718,"avatar_url":"https://avatars1.githubusercontent.com/u/7718?v=3","gravatar_id":"","url":"https://api.github.com/users/cbetta","html_url":"https://github.com/cbetta","followers_url":"https://api.github.com/users/cbetta/followers","following_url":"https://api.github.com/users/cbetta/following{/other_user}","gists_url":"https://api.github.com/users/cbetta/gists{/gist_id}","starred_url":"https://api.github.com/users/cbetta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbetta/subscriptions","organizations_url":"https://api.github.com/users/cbetta/orgs","repos_url":"https://api.github.com/users/cbetta/repos","events_url":"https://api.github.com/users/cbetta/events{/privacy}","received_events_url":"https://api.github.com/users/cbetta/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2017-03-21T15:42:44Z","updated_at":"2017-03-22T17:19:25Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-03-21T00:04:12Z","updated_at":"2017-03-22T17:19:25Z","closed_at":"2017-03-22T17:19:25Z","body":"The Nexmo Node library [v2.0.0](https://github.com/Nexmo/nexmo-node/releases/tag/v2.0.0) has been updated to provide more information in the `error` callback. It is now in the format:\r\n\r\n```\r\n{\r\n  statusCode: STATUS_CODE,\r\n  body: JSON_BODY,\r\n  headers: HEADERS\r\n}\r\n```\r\n\r\nAny existing checks should be changed from directly looking at properties on the `error` object to checking `error.body.{property}`.\r\n\r\nThe addition of the `statusCode` property may also be useful in better determining the cause of the errors.\r\n\r\nIf the updates in v2.0.0 don't help https://github.com/Nexmo/nexmo-node/issues/78 then additional comments would be welcome in order to provide more useful error callbacks.\r\n"}}
{"actor":{"display_login":"cbetta"}}