Random BhRestToken Error - 401 Unauthorized

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, pmularski, BullhornSupport, StaffingSupport, pmularski, BullhornSupport

Post Reply
ganeshsingh11
User
Posts: 1
Joined: Tue Apr 05, 2022 1:48 am

Random BhRestToken Error - 401 Unauthorized

Post by ganeshsingh11 »

host rest91.bullhornstaffing.com
method GET
path_group /rest-services/?/query/JobOrder
status_code 401
url https://rest91.bullhornstaffing.com/res ... y/JobOrder
hostname rest91.bullhornstaffing.com

We have an integration with Bullhorn API for one of our client and are seeing an issue with Token refresh not consistently, but intermittently. Example, for a particular integration The token refresh works fine 10 days and then suddenly fails with the message below:

{"errorMessageKey":"errors.authentication.invalidRestToken","origin":"proxy","errorCode":401,"errorMessage":"Bad 'BhRestToken' or timed-out."}

We are ending up with something very similar to this error reported in the forum but this is quite old.

viewtopic.php?t=23949

Could you let us know the possible reasons for this and any measures to avoid this. Does this explain the only reasons: https://www.bullhorn.com/marketplace/wp ... tokens.pdf ?
Post Reply