{"action":"created","issue":{"url":"https://api.github.com/repos/dbashford/textract/issues/111","repository_url":"https://api.github.com/repos/dbashford/textract","labels_url":"https://api.github.com/repos/dbashford/textract/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/dbashford/textract/issues/111/comments","events_url":"https://api.github.com/repos/dbashford/textract/issues/111/events","html_url":"https://github.com/dbashford/textract/issues/111","id":200124054,"number":111,"title":"Callback parameter will called twice","user":{"login":"mirkods","id":2368194,"avatar_url":"https://avatars.githubusercontent.com/u/2368194?v=3","gravatar_id":"","url":"https://api.github.com/users/mirkods","html_url":"https://github.com/mirkods","followers_url":"https://api.github.com/users/mirkods/followers","following_url":"https://api.github.com/users/mirkods/following{/other_user}","gists_url":"https://api.github.com/users/mirkods/gists{/gist_id}","starred_url":"https://api.github.com/users/mirkods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirkods/subscriptions","organizations_url":"https://api.github.com/users/mirkods/orgs","repos_url":"https://api.github.com/users/mirkods/repos","events_url":"https://api.github.com/users/mirkods/events{/privacy}","received_events_url":"https://api.github.com/users/mirkods/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-11T15:31:12Z","updated_at":"2017-01-13T13:29:55Z","closed_at":null,"body":"Hi there,\r\nand congratulations for this great module.\r\n\r\nI discovered that when the url is not correct the callback is executed twice, this is a code to reproduce what I said:\r\n\r\n```javascript\r\ntextract.fromUrl('http://google.com/test.pd', (error, text) => {\r\n    console.log(err);\r\n})\r\n```\r\n\r\nThe output of this code will be:\r\n```\r\n- Response code 404 (Not Found)\r\n- Error for type: [[ application/octet-stream ]], file: [[ /var/folders/_5/1yy3l2ms1kl55cv30v02hldh0000gn/T/65561007942.pd ]]\r\n```\r\n\r\nHope that the issue is clear,\r\nMirko"},"comment":{"url":"https://api.github.com/repos/dbashford/textract/issues/comments/272442943","html_url":"https://github.com/dbashford/textract/issues/111#issuecomment-272442943","issue_url":"https://api.github.com/repos/dbashford/textract/issues/111","id":272442943,"user":{"login":"dbashford","id":581127,"avatar_url":"https://avatars.githubusercontent.com/u/581127?v=3","gravatar_id":"","url":"https://api.github.com/users/dbashford","html_url":"https://github.com/dbashford","followers_url":"https://api.github.com/users/dbashford/followers","following_url":"https://api.github.com/users/dbashford/following{/other_user}","gists_url":"https://api.github.com/users/dbashford/gists{/gist_id}","starred_url":"https://api.github.com/users/dbashford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbashford/subscriptions","organizations_url":"https://api.github.com/users/dbashford/orgs","repos_url":"https://api.github.com/users/dbashford/repos","events_url":"https://api.github.com/users/dbashford/events{/privacy}","received_events_url":"https://api.github.com/users/dbashford/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T13:29:55Z","updated_at":"2017-01-13T13:29:55Z","body":"Will take a look at this hopefully today, thanks for reporting!"}}
{"actor":{"display_login":"dbashford"}}