{"action":"created","issue":{"url":"https://api.github.com/repos/hidespb/node-whatsapi/issues/29","labels_url":"https://api.github.com/repos/hidespb/node-whatsapi/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/hidespb/node-whatsapi/issues/29/comments","events_url":"https://api.github.com/repos/hidespb/node-whatsapi/issues/29/events","html_url":"https://github.com/hidespb/node-whatsapi/issues/29","id":54698518,"number":29,"title":"Cannot sendImage [WAUTH-2 and WA 1.5 ]","user":{"login":"hungchai","id":10190523,"avatar_url":"https://avatars.githubusercontent.com/u/10190523?v=3","gravatar_id":"","url":"https://api.github.com/users/hungchai","html_url":"https://github.com/hungchai","followers_url":"https://api.github.com/users/hungchai/followers","following_url":"https://api.github.com/users/hungchai/following{/other_user}","gists_url":"https://api.github.com/users/hungchai/gists{/gist_id}","starred_url":"https://api.github.com/users/hungchai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungchai/subscriptions","organizations_url":"https://api.github.com/users/hungchai/orgs","repos_url":"https://api.github.com/users/hungchai/repos","events_url":"https://api.github.com/users/hungchai/events{/privacy}","received_events_url":"https://api.github.com/users/hungchai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T14:44:28Z","updated_at":"2015-01-19T08:19:26Z","closed_at":null,"body":"I tried [WAUTH-2 and WA 1.5] to send image message, but it throw exception. Anyone can advise it?\r\nThis is my debug message.\r\n```\r\nConnected to WA Server\r\n\r\ntx <stream:features>\r\ntx   <readreceipts></readreceipts>\r\ntx   <groups_v2></groups_v2>\r\ntx   <privacy></privacy>\r\ntx   <presence></presence>\r\ntx </stream:features>\r\n\r\ntx <auth mechanism=\"WAUTH-2\" user=\"852xxxxxxx\">104 data length</auth>\r\n\r\nrx <start from=\"s.whatsapp.net\"></start>\r\n\r\nrx <stream:features></stream:features>\r\n\r\nrx <challenge>20 data length</challenge>\r\n\r\ntx <response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">35 data length</response>\r\n\r\nrx <success t=\"1421589322\" props=\"4\" kind=\"free\" status=\"active\" creation=\"1417702829\" expiration=\"1449238829\">20 data length</success>\r\nLogged in to WA Server\r\n\r\ntx <presence name=\"TOM\"></presence>\r\n\r\nrx <ib from=\"s.whatsapp.net\">\r\nrx   <offline count=\"0\"></offline>\r\nrx </ib>\r\n\r\nrx <presence from=\"852xxxxxxx@s.whatsapp.net\"></presence>\r\n\r\ntx <iq id=\"[message-1443256747-1]\" to=\"s.whatsapp.net\" type=\"set\" xmlns=\"w:m\">\r\ntx   <media hash=\"dx16x09AvKVb7i6igvrD6Q6xGnKfbPV5Rc3iVVmLfEM=\" type=\"image\" size=\"77470\"></media>\r\ntx </iq>\r\n\r\nrx <iq from=\"s.whatsapp.net\" id=\"[message-1443256747-1]\" type=\"result\">\r\nrx   <media url=\"https://mmi221.whatsapp.net/u/vJw9-2aoY1XRJ_y-ukjy0r74cH4ABQztjrl85g/AgUdVEsxE53X58aQfIL5GiCuEcQr-R9KSMu9wNPXybJO\" ip=\"198.23.87.77\"></media>\r\nrx </iq>\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: spawn ENOENT\r\n    at errnoException (child_process.js:1000:11)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:791:34)\r\n```"},"comment":{"url":"https://api.github.com/repos/hidespb/node-whatsapi/issues/comments/70458842","html_url":"https://github.com/hidespb/node-whatsapi/issues/29#issuecomment-70458842","issue_url":"https://api.github.com/repos/hidespb/node-whatsapi/issues/29","id":70458842,"user":{"login":"tvandergeer","id":1439892,"avatar_url":"https://avatars.githubusercontent.com/u/1439892?v=3","gravatar_id":"","url":"https://api.github.com/users/tvandergeer","html_url":"https://github.com/tvandergeer","followers_url":"https://api.github.com/users/tvandergeer/followers","following_url":"https://api.github.com/users/tvandergeer/following{/other_user}","gists_url":"https://api.github.com/users/tvandergeer/gists{/gist_id}","starred_url":"https://api.github.com/users/tvandergeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvandergeer/subscriptions","organizations_url":"https://api.github.com/users/tvandergeer/orgs","repos_url":"https://api.github.com/users/tvandergeer/repos","events_url":"https://api.github.com/users/tvandergeer/events{/privacy}","received_events_url":"https://api.github.com/users/tvandergeer/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T08:19:26Z","updated_at":"2015-01-19T08:19:26Z","body":"Can you subscribe to the \"error\" event and print out the results?\r\n\r\n```\r\nwa.on('error', function(){\r\n   console.log(\"Error event: \", arguments[0]); \r\n});\r\n```"}}