{"action":"created","issue":{"url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/issues/44","repository_url":"https://api.github.com/repos/ringcentral/ringcentral-csharp","labels_url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/issues/44/comments","events_url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/issues/44/events","html_url":"https://github.com/ringcentral/ringcentral-csharp/issues/44","id":158349301,"number":44,"title":"Refresh token error","user":{"login":"dariusdamalakas","id":131102,"avatar_url":"https://avatars.githubusercontent.com/u/131102?v=3","gravatar_id":"","url":"https://api.github.com/users/dariusdamalakas","html_url":"https://github.com/dariusdamalakas","followers_url":"https://api.github.com/users/dariusdamalakas/followers","following_url":"https://api.github.com/users/dariusdamalakas/following{/other_user}","gists_url":"https://api.github.com/users/dariusdamalakas/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusdamalakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusdamalakas/subscriptions","organizations_url":"https://api.github.com/users/dariusdamalakas/orgs","repos_url":"https://api.github.com/users/dariusdamalakas/repos","events_url":"https://api.github.com/users/dariusdamalakas/events{/privacy}","received_events_url":"https://api.github.com/users/dariusdamalakas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/labels/in%20progress","name":"in progress","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-06-03T11:44:09Z","updated_at":"2016-07-04T07:08:40Z","closed_at":"2016-07-04T07:08:39Z","body":"We need to be able to catch refresh token errors, as that indicates the integration is down until client reauthenticates and we get a new refresh token.\r\n\r\nWe get a generic `ApiException`:\r\n````\r\nRingCentral.Http.ApiException: refresh token is wrong!\r\n   at RingCentral.Http.ApiResponse..ctor(HttpResponseMessage response, HttpRequestMessage request)\r\n   at RingCentral.Platform.AuthCall(Request request)\r\n   at RingCentral.Platform.Refresh()\r\n````\r\n\r\nPreferably, this could be a `RefreshTokenInvalid` exception or similar.  "},"comment":{"url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/issues/comments/230220385","html_url":"https://github.com/ringcentral/ringcentral-csharp/issues/44#issuecomment-230220385","issue_url":"https://api.github.com/repos/ringcentral/ringcentral-csharp/issues/44","id":230220385,"user":{"login":"tylerlong","id":733544,"avatar_url":"https://avatars.githubusercontent.com/u/733544?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerlong","html_url":"https://github.com/tylerlong","followers_url":"https://api.github.com/users/tylerlong/followers","following_url":"https://api.github.com/users/tylerlong/following{/other_user}","gists_url":"https://api.github.com/users/tylerlong/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerlong/subscriptions","organizations_url":"https://api.github.com/users/tylerlong/orgs","repos_url":"https://api.github.com/users/tylerlong/repos","events_url":"https://api.github.com/users/tylerlong/events{/privacy}","received_events_url":"https://api.github.com/users/tylerlong/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T07:08:39Z","updated_at":"2016-07-04T07:08:39Z","body":"`ApiException` is provided with version `1.0.1`. You can get detailed request and response information by inspect the exception instance. So it should be sufficient for programmers to do troubleshooting.\r\n\r\nFor authorization exceptions. I didn't create any special exceptions classes. Because as long as the authorization expires new requests will be rejected by server and thus you can get an exception to investigate.\r\n\r\nClose it for now. Feel free to reopen it or create a new issue."}}
{"actor":{"display_login":"tylerlong"}}