Expand my Community achievements bar.

SOLVED

Analytics livestream failing with HTTP/1.1 401 Unauthorized

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 6

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

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

Avatar

Employee Advisor

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