{"action":"created","issue":{"url":"https://api.github.com/repos/fdeschenes/omniauth-freshbooks/issues/2","labels_url":"https://api.github.com/repos/fdeschenes/omniauth-freshbooks/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fdeschenes/omniauth-freshbooks/issues/2/comments","events_url":"https://api.github.com/repos/fdeschenes/omniauth-freshbooks/issues/2/events","html_url":"https://github.com/fdeschenes/omniauth-freshbooks/issues/2","id":26955486,"number":2,"title":"Error when account is expired.","user":{"login":"maxime-d","id":514709,"avatar_url":"https://avatars.githubusercontent.com/u/514709?v=3","gravatar_id":"","url":"https://api.github.com/users/maxime-d","html_url":"https://github.com/maxime-d","followers_url":"https://api.github.com/users/maxime-d/followers","following_url":"https://api.github.com/users/maxime-d/following{/other_user}","gists_url":"https://api.github.com/users/maxime-d/gists{/gist_id}","starred_url":"https://api.github.com/users/maxime-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxime-d/subscriptions","organizations_url":"https://api.github.com/users/maxime-d/orgs","repos_url":"https://api.github.com/users/maxime-d/repos","events_url":"https://api.github.com/users/maxime-d/events{/privacy}","received_events_url":"https://api.github.com/users/maxime-d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-02-05T12:20:02Z","updated_at":"2015-10-06T11:26:51Z","closed_at":null,"body":"Hi,\r\n\r\nWhen Freshbooks account was is expired, API return : \r\n\r\n```json\r\n{\r\n  \"error\" : \"Your Account is Expired.\",\r\n  \"code\" : \"10060\",\r\n  \"status\" : \"fail\"\r\n}\r\n```\r\n\r\nHow catch this error on strategy omniauth ?"},"comment":{"url":"https://api.github.com/repos/fdeschenes/omniauth-freshbooks/issues/comments/145826517","html_url":"https://github.com/fdeschenes/omniauth-freshbooks/issues/2#issuecomment-145826517","issue_url":"https://api.github.com/repos/fdeschenes/omniauth-freshbooks/issues/2","id":145826517,"user":{"login":"thbar","id":10141,"avatar_url":"https://avatars.githubusercontent.com/u/10141?v=3","gravatar_id":"","url":"https://api.github.com/users/thbar","html_url":"https://github.com/thbar","followers_url":"https://api.github.com/users/thbar/followers","following_url":"https://api.github.com/users/thbar/following{/other_user}","gists_url":"https://api.github.com/users/thbar/gists{/gist_id}","starred_url":"https://api.github.com/users/thbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thbar/subscriptions","organizations_url":"https://api.github.com/users/thbar/orgs","repos_url":"https://api.github.com/users/thbar/repos","events_url":"https://api.github.com/users/thbar/events{/privacy}","received_events_url":"https://api.github.com/users/thbar/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T11:26:51Z","updated_at":"2015-10-06T11:26:51Z","body":"@maxime-d did you figure this out? I'm starting to connect to FreshBooks, so this will be useful. Thanks!"}}