Analytics livestream failing with HTTP/1.1 401 Unauthorized

Avatar

Avatar

srikoll

Avatar

srikoll

srikoll

18-08-2020

Hi,

We have created 3 seperate API projects for 3 seperate report suites to retrieve data from adobe analytics via livestream API. What we have noticed is that for the first project the retrieval is successful. However, for the subsequent retrivals (2 & 3), the retrievals are failing with "HTTP/1.1 401 Unauthorized.". In all 3 cases we are running with the same account and same permissions, and not sure why this is the case. Any report suite created after the 1st one fails here.

 

Step:

  1. Go to IO console.
  2. Click on the project name.
  3. Click on Service Account(JWT) -> Generate JWT
  4. Provide a private key and click on Generate Token
  5. Copy the generated curl command.
  6. Run the curl command and get a bearer token.
  7. Run

curl -v --location --compressed --header "Authorization: Bearer <token>" "https://livestream.adobe.net/api/1/stream/clientdetail";

 

Regards,

Sri

Analytics livestream

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Khurshid_Alam

Employee

Avatar

Khurshid_Alam

Employee

Khurshid_Alam
Employee

19-08-2020

Check with Customer Care if your techaccount showing in JWT payload is updated in the Livestream user access settings at the backend.

Avatar

Avatar

kainth

Avatar

kainth

kainth

18-08-2020

Hi @srikoll,

As per my understanding, the error 401 indicates that the integration does not have the exchange_jwt scope. The client ID and client secret combination is invalid. You can also refer to the below documentation link which provides more details regarding troubleshooting this error.

Link: https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/live-stream-api/troubleshooting.md

 

Hope this helps. 

 

Regards,

Abhinav