on 2018 Sep 27 3:55 PM
Hello,
I had a simple requirement to display data from Rest API(northwind) in a CloudFoundry application. But off course the actual work is never as simple as it sounds 🙂 These are the steps I have performed, and hoping someone can help.
ODataQuery testQuery = ODataQueryBuilder
.withEntity("/V2/Northwind/Northwind.svc", "Products")
.select("ProductID", "ProductName")
.skip(1)
.top(5)
.inlineCount()
.build();
ODataQueryResult result = testQuery.execute(“CF_NORTHWIND”);
Error in log:
"ERROR","categories":[],"msg":"Could not connect to destination service [No Access] :Failed to get destinations of subaccount: Failed to get access token for destination service. If your application is not running on Cloud Foundry, for example, when deploying to a local container, consider declaring the \"destinations\" environment variable to configure destinations." }
I have gone over the Official Help document numerous times, but I can’t seem to figure out what is missing.
I’ve also read that I have to create a instance of Destination and Xsuaa service at the App level. I’m not how these instances link to the SubAccount Destination?
Can someone please advise on what I could be missing? Any help would be appreciated.
Thank you,
Rob.
Request clarification before answering.
I will try this solution. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.