{"action":"created","issue":{"url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/142","labels_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/142/comments","events_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/142/events","html_url":"https://github.com/Schmavery/facebook-chat-api/issues/142","id":125865390,"number":142,"title":"Error sending attachment","user":{"login":"bearbear12345","id":1159091,"avatar_url":"https://avatars.githubusercontent.com/u/1159091?v=3","gravatar_id":"","url":"https://api.github.com/users/bearbear12345","html_url":"https://github.com/bearbear12345","followers_url":"https://api.github.com/users/bearbear12345/followers","following_url":"https://api.github.com/users/bearbear12345/following{/other_user}","gists_url":"https://api.github.com/users/bearbear12345/gists{/gist_id}","starred_url":"https://api.github.com/users/bearbear12345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bearbear12345/subscriptions","organizations_url":"https://api.github.com/users/bearbear12345/orgs","repos_url":"https://api.github.com/users/bearbear12345/repos","events_url":"https://api.github.com/users/bearbear12345/events{/privacy}","received_events_url":"https://api.github.com/users/bearbear12345/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-11T03:06:03Z","updated_at":"2016-01-11T08:34:46Z","closed_at":"2016-01-11T03:46:15Z","body":"Logging on silly mode:\r\n\r\n```\r\ninfo Logging in...\r\ninfo Logged in\r\ninfo Request to pull 1\r\ninfo Request to pull 2\r\ninfo Request to thread_sync\r\ninfo Done logging in.\r\nverb parseAndCheckLogin: for (;;);{\"__ar\":1,\"error\":1357004,\"errorSummary\":\"Sorry, something went wrong\",\"errorDescription\":\"Please try closing and re-opening your browser window.\",\"payload\":null,\"jsmods\":{\"require\":[[\"Cookie\",\"setIfFirstPartyContext\",[],[\"_js_datr\",\"YxuTVjz6s3B7JBDE65GNIW64\",63072000000,\"\\/\",false],[]]]},\"bootloadable\":{},\"ixData\":{},\"lid\":\"6238360021121233076\"}\r\nERR! Error in uploadAttachment { __ar: 1,\r\nERR! Error in uploadAttachment   error: 1357004,\r\nERR! Error in uploadAttachment   errorSummary: 'Sorry, something went wrong',\r\nERR! Error in uploadAttachment   errorDescription: 'Please try closing and re-opening your browser window.',\r\nERR! Error in uploadAttachment   payload: null,\r\nERR! Error in uploadAttachment   jsmods: { require: [ [Object] ] },\r\nERR! Error in uploadAttachment   bootloadable: {},\r\nERR! Error in uploadAttachment   ixData: {},\r\nERR! Error in uploadAttachment   lid: '6238360021121233076' }\r\n```\r\n\r\ncode:\r\n```\r\nvar fs = require(\"fs\");\r\nvar login = require(\"facebook-chat-api\");\r\nlogin({\r\n  email: _username_,\r\n  password: _password_\r\n}, function callback(err, api) {\r\n  if (err) return console.log(JSON.stringify(err));\r\n  api.setOptions({\r\n    listenEvents: false,\r\n    logLevel: \"silly\"\r\n  });\r\n    api.sendMessage({attachment: fs.createReadStream(__dirname + '/image.png')}, ...)\r\n)}\r\n```\r\n\r\nimage exists\r\n"},"comment":{"url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/comments/170464955","html_url":"https://github.com/Schmavery/facebook-chat-api/issues/142#issuecomment-170464955","issue_url":"https://api.github.com/repos/Schmavery/facebook-chat-api/issues/142","id":170464955,"user":{"login":"Schmavery","id":2154522,"avatar_url":"https://avatars.githubusercontent.com/u/2154522?v=3","gravatar_id":"","url":"https://api.github.com/users/Schmavery","html_url":"https://github.com/Schmavery","followers_url":"https://api.github.com/users/Schmavery/followers","following_url":"https://api.github.com/users/Schmavery/following{/other_user}","gists_url":"https://api.github.com/users/Schmavery/gists{/gist_id}","starred_url":"https://api.github.com/users/Schmavery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schmavery/subscriptions","organizations_url":"https://api.github.com/users/Schmavery/orgs","repos_url":"https://api.github.com/users/Schmavery/repos","events_url":"https://api.github.com/users/Schmavery/events{/privacy}","received_events_url":"https://api.github.com/users/Schmavery/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T08:34:46Z","updated_at":"2016-01-11T08:34:46Z","body":"Awesome, thanks for bearing with us ;)"}}