{"action":"opened","issue":{"url":"https://api.github.com/repos/abbyysdk/ocrsdk.com/issues/43","repository_url":"https://api.github.com/repos/abbyysdk/ocrsdk.com","labels_url":"https://api.github.com/repos/abbyysdk/ocrsdk.com/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/abbyysdk/ocrsdk.com/issues/43/comments","events_url":"https://api.github.com/repos/abbyysdk/ocrsdk.com/issues/43/events","html_url":"https://github.com/abbyysdk/ocrsdk.com/issues/43","id":149130570,"number":43,"title":"parseXmlResponse Error and Error handling","user":{"login":"SebastianMetzger","id":2345498,"avatar_url":"https://avatars.githubusercontent.com/u/2345498?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianMetzger","html_url":"https://github.com/SebastianMetzger","followers_url":"https://api.github.com/users/SebastianMetzger/followers","following_url":"https://api.github.com/users/SebastianMetzger/following{/other_user}","gists_url":"https://api.github.com/users/SebastianMetzger/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianMetzger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianMetzger/subscriptions","organizations_url":"https://api.github.com/users/SebastianMetzger/orgs","repos_url":"https://api.github.com/users/SebastianMetzger/repos","events_url":"https://api.github.com/users/SebastianMetzger/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianMetzger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T12:00:47Z","updated_at":"2016-04-18T12:00:47Z","closed_at":null,"body":"It is pretty cool, that abbyy provides a NodeJS library for their API and so far it also worked well for us!\r\n\r\nWe currently have issues, that the processImage task is not working for certain users and the error handling of the ocrsdk.js is a bit buggy itself, as the error message is show as [Object object].\r\nSo it is hard to debug right now, without monkey patching the library.\r\n\r\nProbably there is a missing \"toString()\" after message or something?\r\ntaskDataCallback(new Error(response.error.message), null);\r\n\r\nHere is the example from our log file:\r\n![abbyy error](https://cloud.githubusercontent.com/assets/2345498/14603148/62281c8c-056c-11e6-9422-68bca1faca11.PNG)"}}