Page 1 of 1

Unknown host error

Posted: Tue Jan 15, 2013 11:02 am
by bmben
Whenever I try to access the authorization code, I go to the following link with my client ID: ... _type=code

I enter my username and password, and have even accepted the Ts&cs. When I am redirected however, the code is not in the URL. Instead, I get this:


Is there anyway to get around this?

Re: Unknown host error

Posted: Thu Jan 24, 2013 9:28 am
by s.potnis

Please use ... client_id=[client_id]&response_type=code

This should work for you.


Soniya Potnis | Enterprise Support Analyst
Contact | (w) 617.951.4339
Connect | Twitter | LinkedIn

Re: Unknown host error

Posted: Mon Mar 23, 2015 10:05 am
by egorgan
Hi Guys,

We are experiencing similar issue.

User is logged in into Bullhorn system (

When trying to get auth_code using the Unknown host error is received.
When using as suggested the auth_code was successfully received.

Access_token/refresh_token pair was also received without any problem

But when trying to login to the Rest API ( ... ={xxxxxxxx})
the error is received saying invalid access token...

What are we doing wrong because we are following the procedures described here ?

Any help is appreciated!


Re: Unknown host error

Posted: Fri Mar 27, 2015 12:23 pm
by s.emmons
Hi egorgan,

You don't need to be logged into Bullhorn to run through the oAuth steps in a browser window. I tested these steps on my end and wasn't seeing the unknown host exception, but in any case, if all you are trying to accomplish is the oAuth, I would do so in a fresh window.

Re: Unknown host error

Posted: Fri Mar 27, 2015 1:39 pm
by egorgan
In our case most of the time users will be logged in into Bullhorn system when accessing our application.
Our application is using REST API in background.

So the application has to go through the OAuth steps like obtaining code/oauth access and refresh tokens/bullhorn session in order to get access to the REST and start working it right ?!
if yes then there is an issue. Please see my previous comment and comments posted before as well.

In case users access our application anonymously the application or the REST API will force them to log in.

Am i missing something ?

Re: Unknown host error

Posted: Mon Mar 30, 2015 3:13 pm
by s.emmons
Hi egorgan,

The oAuth steps can just be done manually in a browser. Once you've generated an auth code for a given set of API user and REST credentials, you obtain the access/refresh token.

From that point, you can use the access and refresh tokens programmatically to ensure that your app can connect and make API calls to/from Bullhorn when accessed.

You shouldn't have to complete the entire oAuth process for each time a user access your app.