Reltio Connect

 View Only
  • 1.  Error 401 ROCS data loader utility

    This message was posted by a user wishing to remain anonymous
    Posted 9 days ago
    This message was posted by a user wishing to remain anonymous

    Hello everyone, 

    I am facing issues while trying to execute ROCS data loader utility. Instead of username and password, I have given client_credentials, but while executing I am getting 401 error,. ERROR - Auth Call Failed: Error Code = 401 |||| Error Message: {"error":"unauthorized","error_description":"Failed to decode basic authentication token"}

    Does anyone know how to pass client credentials correctly. What is the format, as it is getting encrypted after first execution.

    is it  I tried all possible combinations.

    CLIENT_CREDENTIALS = Basic <encoded value>
    or
    CLIENT_CREDENTIALS= clientid:clientsecret

    This was mentioned in the rocs utility data loader properties file:

    #This property used for to get the access token using client_credentials grant type. The value for this property can be obtained by encoding the client name and secret separated by colon in Base64 format. (clientname:clientsecret)
    CLIENT_CREDENTIALS =



  • 2.  RE: Error 401 ROCS data loader utility

    Reltio Employee
    Posted 7 days ago

    Hi Reltio User,

    It sounds like you're encountering an 401 Unauthorized error because the client credentials are not being encoded correctly for the Basic Auth header. To properly encode clientid:clientsecret in base64, follow these steps. Please note this command is a bash common on the UNIX terminal. 

    1. Use the following command to base64 encode your credentials:
      echo -n "clientid:clientsecret" | base64
      This will output an encoded string that should look like this:Y2xpZW50aWQ6Y2xpZW50c2VjcmV0

    2. Once you have the encoded value, pass it in the CLIENT_CREDENTIALS variable using the format:
      CLIENT_CREDENTIALS=Y2xpZW50aWQ6Y2xpZW50c2VjcmV0
      This should resolve the 401 error. Let us know if you continue to face issues!


    ------------------------------
    Girish Kalburgi
    Reltio
    NC
    ------------------------------