cancel
Showing results for 
Search instead for 
Did you mean: 

While doing Configure Authentication and Authorization on SAP BTP.

zain04
Explorer
0 Kudos
648

I am learning to Build a Business Application Using CAP for Java. But on the last step "Configure Authentication and Authorization on SAP BTP" I got the access token in Postman then I hit my application API which ends with this 'hana.ondemand.com/odata/v4/AdminService/Products'

I am getting this as a response.

"error":{

"code": "50003009",
"message: "Failed to start a new transaction"

}

Accepted Solutions (0)

Answers (3)

Answers (3)

zain04
Explorer
0 Kudos

Thanks. Now it is working. I did the authentication and authorization step again.

zain04
Explorer
0 Kudos

After hitting in the terminal,

cf logs bookstore --recent

I got this

0 Kudos

Can you check that your HANA Cloud instance available from all IPs? Step 5 of this tutorial can help you https://developers.sap.com/tutorials/hana-cloud-mission-trial-3.html

0 Kudos

Can you show us what are you seeing in the logs while application is running? To do that, open new terminal in the BAS and run the following command:

cf logs bookstore

Execute your request one more time with a valid token and copy the output. You can then terminate the command with Ctrl+C

0 Kudos

Also, it would be beneficial to see if you can execute a GET to a root of the deployed application in a Postman with same token. Is the request successful?