{"action":"created","issue":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/2175","repository_url":"https://api.github.com/repos/ccxt/ccxt","labels_url":"https://api.github.com/repos/ccxt/ccxt/issues/2175/labels{/name}","comments_url":"https://api.github.com/repos/ccxt/ccxt/issues/2175/comments","events_url":"https://api.github.com/repos/ccxt/ccxt/issues/2175/events","html_url":"https://github.com/ccxt/ccxt/issues/2175","id":303496846,"number":2175,"title":"Explain Error Handling","user":{"login":"frosty00","id":14319357,"avatar_url":"https://avatars0.githubusercontent.com/u/14319357?v=4","gravatar_id":"","url":"https://api.github.com/users/frosty00","html_url":"https://github.com/frosty00","followers_url":"https://api.github.com/users/frosty00/followers","following_url":"https://api.github.com/users/frosty00/following{/other_user}","gists_url":"https://api.github.com/users/frosty00/gists{/gist_id}","starred_url":"https://api.github.com/users/frosty00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frosty00/subscriptions","organizations_url":"https://api.github.com/users/frosty00/orgs","repos_url":"https://api.github.com/users/frosty00/repos","events_url":"https://api.github.com/users/frosty00/events{/privacy}","received_events_url":"https://api.github.com/users/frosty00/received_events","type":"User","site_admin":false},"labels":[{"id":604886969,"url":"https://api.github.com/repos/ccxt/ccxt/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"kroitor","id":1294454,"avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"assignees":[{"login":"kroitor","id":1294454,"avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-03-08T14:24:05Z","updated_at":"2018-03-18T11:49:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi @kroitor and @xpl and all the developers of ccxt.\r\n\r\nI'm have a few questions about error handling in ccxt. So there are ~two~ *three* main methods that are in the source of most exchanges for handling errors:\r\n\r\n* `handleErrors`\r\n* `throwErrorOnException`\r\n* *`request`*\r\n\r\nI gather that handleErrors called in fetch and throwErrorOnException is called pretty much anywhere. However I  also see some errors get thrown in request and I'm not really sure if they should be raised there. \r\n\r\nCould someone explain how these two methods are supposed to work together. Moreover, @kroitor was talking about only parsing JSON once before but I'm not sure where this should take place. Is \r\n\r\nAll the best,\r\nfrosty "},"comment":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/comments/373992079","html_url":"https://github.com/ccxt/ccxt/issues/2175#issuecomment-373992079","issue_url":"https://api.github.com/repos/ccxt/ccxt/issues/2175","id":373992079,"user":{"login":"frosty00","id":14319357,"avatar_url":"https://avatars0.githubusercontent.com/u/14319357?v=4","gravatar_id":"","url":"https://api.github.com/users/frosty00","html_url":"https://github.com/frosty00","followers_url":"https://api.github.com/users/frosty00/followers","following_url":"https://api.github.com/users/frosty00/following{/other_user}","gists_url":"https://api.github.com/users/frosty00/gists{/gist_id}","starred_url":"https://api.github.com/users/frosty00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frosty00/subscriptions","organizations_url":"https://api.github.com/users/frosty00/orgs","repos_url":"https://api.github.com/users/frosty00/repos","events_url":"https://api.github.com/users/frosty00/events{/privacy}","received_events_url":"https://api.github.com/users/frosty00/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T11:49:23Z","updated_at":"2018-03-18T11:49:23Z","author_association":"CONTRIBUTOR","body":"I tried again, this time trying to stick closely to the javascript as possible. Let me know your thoughts."}}
{"actor":{"display_login":"frosty00"}}