cancel
Showing results for 
Search instead for 
Did you mean: 

Data Attribute Recommendation - Get Authorization error in Postman

PavanKrishna
Participant
491

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 (2)

Answers (2)

SubhojitC
Explorer
0 Kudos

Please check that you are using the environment of data-attribute-recommendations-environment in Postman

Once you change the environment to Data-attribute-recommendations-environment it should work

juliana_morais
Product and Topic Expert
Product and Topic Expert
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