Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Analytics livestream failing with HTTP/1.1 401 Unauthorized

Avatar

Avatar
Validate 1
Level 1
srikoll
Level 1

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
srikoll
Level 1

Likes

3 likes

Total Posts

15 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
srikoll
Level 1

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
Affirm 25
Employee
Khurshid_Alam
Employee

Likes

55 likes

Total Posts

188 posts

Correct Reply

41 solutions
Top badges earned
Affirm 25
Boost 50
Affirm 10
Boost 25
Affirm 5
View profile

Avatar
Affirm 25
Employee
Khurshid_Alam
Employee

Likes

55 likes

Total Posts

188 posts

Correct Reply

41 solutions
Top badges earned
Affirm 25
Boost 50
Affirm 10
Boost 25
Affirm 5
View profile
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
Affirm 25
Level 4
kainth
Level 4

Likes

49 likes

Total Posts

117 posts

Correct Reply

26 solutions
Top badges earned
Affirm 25
Give Back
Boost 5
Boost 3
Boost 25
View profile

Avatar
Affirm 25
Level 4
kainth
Level 4

Likes

49 likes

Total Posts

117 posts

Correct Reply

26 solutions
Top badges earned
Affirm 25
Give Back
Boost 5
Boost 3
Boost 25
View profile
kainth
Level 4

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