Error code 401 "Unauthorized" means that access is denied due to invalid credentials. This is a client-side error response. Please make sure that you are entering valid credentials. Here is how you can troubleshoot the issue:

 

Start by completing a thorough application backup. Once you have backed up your application, check the requested URL. Also, clear relevant cookies, clear the cache, log out and log in. We would also advise you to debug common platforms: If you’re running common software packages on the server, you may want to start by looking into the stability and functionality of those platforms first. To troubleshoot software issues:

  • Rollback Recent Upgrades

  • Uninstall New Extensions, Modules, or Plugins

  • Check for Unexpected Database Changes

 

Make sure that you are setting the parameters correctly and you are not missing any arguments, and make sure that the authentication parameter authenticates properly.


If you are still getting the error and using the Postman application for your request to the BitGo server, your token might not be getting recognized using this application, since Postman usually modifies the headers. We recommend that you make the CURL request directly with the token. Also, since the token is not being recognized we recommend that you create a new token, and then make the CURL request directly with the new token.



cURL request Example:

ACCESS_TOKEN='DeveloperAccessToken'

curl -X GET -H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{}' \
-H "Content-Type: application/json" \
http://$BITGO_EXPRESS_HOST:3080/api/v2/user/session


Please refer to our API documentation for more information: https://www.bitgo.com/api/v2/


If you are still facing the issue, please contact BitGo Support.