{"action":"created","issue":{"url":"https://api.github.com/repos/scribejava/scribejava/issues/849","repository_url":"https://api.github.com/repos/scribejava/scribejava","labels_url":"https://api.github.com/repos/scribejava/scribejava/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/scribejava/scribejava/issues/849/comments","events_url":"https://api.github.com/repos/scribejava/scribejava/issues/849/events","html_url":"https://github.com/scribejava/scribejava/pull/849","id":323656362,"number":849,"title":"Fix Fitbit token error extraction","user":{"login":"danmana","id":498419,"avatar_url":"https://avatars0.githubusercontent.com/u/498419?v=4","gravatar_id":"","url":"https://api.github.com/users/danmana","html_url":"https://github.com/danmana","followers_url":"https://api.github.com/users/danmana/followers","following_url":"https://api.github.com/users/danmana/following{/other_user}","gists_url":"https://api.github.com/users/danmana/gists{/gist_id}","starred_url":"https://api.github.com/users/danmana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmana/subscriptions","organizations_url":"https://api.github.com/users/danmana/orgs","repos_url":"https://api.github.com/users/danmana/repos","events_url":"https://api.github.com/users/danmana/events{/privacy}","received_events_url":"https://api.github.com/users/danmana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-16T14:50:34Z","updated_at":"2018-05-22T11:29:24Z","closed_at":"2018-05-18T15:59:18Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/scribejava/scribejava/pulls/849","html_url":"https://github.com/scribejava/scribejava/pull/849","diff_url":"https://github.com/scribejava/scribejava/pull/849.diff","patch_url":"https://github.com/scribejava/scribejava/pull/849.patch"},"body":"Fitbit does not use a standard error response format, so the default extractor can't process the error code and description.\r\n\r\nSample Fitbit error:\r\n```json\r\n{\r\n\t\"errors\": [{\r\n\t\t\t\"errorType\": \"invalid_grant\",\r\n\t\t\t\"message\": \"Authorization code invalid: cbb1c11b23209011e89be71201fa6381464dc0af Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.\"\r\n\t\t}\r\n\t],\r\n\t\"success\": false\r\n}\r\n```\r\n\r\nStandard errors:\r\n```json\r\n{\r\n       \"error\":\"invalid_request\",\r\n       \"error_description\":\"...\"\r\n}\r\n```\r\n\r\nRegarding the test: if it's not common practice to test the api project, we can leave it out.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scribejava/scribejava/issues/comments/390957177","html_url":"https://github.com/scribejava/scribejava/pull/849#issuecomment-390957177","issue_url":"https://api.github.com/repos/scribejava/scribejava/issues/849","id":390957177,"user":{"login":"kullfar","id":736714,"avatar_url":"https://avatars3.githubusercontent.com/u/736714?v=4","gravatar_id":"","url":"https://api.github.com/users/kullfar","html_url":"https://github.com/kullfar","followers_url":"https://api.github.com/users/kullfar/followers","following_url":"https://api.github.com/users/kullfar/following{/other_user}","gists_url":"https://api.github.com/users/kullfar/gists{/gist_id}","starred_url":"https://api.github.com/users/kullfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kullfar/subscriptions","organizations_url":"https://api.github.com/users/kullfar/orgs","repos_url":"https://api.github.com/users/kullfar/repos","events_url":"https://api.github.com/users/kullfar/events{/privacy}","received_events_url":"https://api.github.com/users/kullfar/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T11:29:24Z","updated_at":"2018-05-22T11:29:24Z","author_association":"MEMBER","body":"I will make release on this Friday."}}
{"actor":{"display_login":"kullfar"}}