We have an integration with Bullhorn API for one of our client that essentially polls Bullhorn for events every minute or so.
About every 5 minutes, we invoke
oauth/token?grant_type=refresh_token&refresh_token={Settings.RefreshToken}&client_id={Settings.ClientId}&client_secret={Settings.ClientSecret}
to refresh our Access and Refresh Tokens then call
rest-services/login?version=*&access_token={Settings.AccessToken}
to log in again to the Bullhorn API.
Every now and then, our Refresh call fails with the following result:
Code: Select all
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Pragma: no-cache
Connection: close
Cache-Control: no-store
Date: Thu, 07 Sep 2017 18:14:53 GMT
Server: Apache-Coyote/1.1
Content-Length: 102
Content-Type: application/json; charset=UTF-8
}
Code: Select all
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Connection: close
Transfer-Encoding: chunked
Date: Tue, 05 Sep 2017 19:22:19 GMT
Server: Apache-Coyote/1.1
Via: 1.1 default
Content-Type: application/json; charset=UTF-8
})
Is that a known issue? Is there workarounds other then increasing the amount of retries?