cancel
Showing results for 
Search instead for 
Did you mean: 

Data Attribute Recommendation - Get Authorization error in Postman

PavanKrishna
Participant

Hi All,

I am working on this tutorial "Use Machine Learning to Classify Data Records" available on this link https://developers.sap.com/mission.cp-aibus-data-attribute.html.

At this step "Get an access token" in this tutorial given here - https://developers.sap.com/tutorials/cp-aibus-dar-upload-data.html I am getting an error as shown below with the message, "Could not send request"

Why is it failing and how do I fix it?

This is how I've defined the values in Postman app

Not sure where the error is and why the GetAuthorization fails. Can anyone please help to fix it.

Accepted Solutions (0)

Answers (1)

Answers (1)

juliana_morais
Advisor
Advisor
0 Kudos

Hi Pavan,

In your Postman Environment, use the variables name: "hostname" instead of "url1", and "authentication_endpoint" instead of "url" (as explained in https://developers.sap.com/tutorials/cp-aibus-dar-setup-postman.html). This should fix the issue.

Bear in mind that if you use the "Set up account for Data Attribute Recommendation" booster as detailed in https://developers.sap.com/tutorials/cp-aibus-dar-booster-postman.html, the credentials are automatically entered in the Postman Environment and no setting up is needed. I've just tested the GET Authorization endpoint using the Postman Collection and Environment files that I downloaded from the booster response and it worked fine (see https://developers.sap.com/tutorials/cp-aibus-dar-booster-postman.html#eae80a66-2b21-40d2-8a24-b21ef.... You could also try that instead of trying to fix your Postman Environment.

Best regards,

Juliana