cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error while retrieving destination

0 Likes
2,982

Hello Experts.

We are having a problem with an App that is Deployed in BTP, this herd calls an Odata that is hosted in the Odata provisioning, which works without a problem, showing the Metadata.

But when opening the app, a 500 error appears and it does not show Odata data.


Reviewing the Error Log, I get the following message.

GET request to ...0.0.1/odata/SAP/.../$metadata?sap-language=ES 
completed with status 500 Error while retrieving destination SAP_HCM_ODP from destination service. HTTP status code: 404, token details: 
{"subdomain":"cross-prd-conecta-u8rodjdd",
 "serviceInstanceId":"84aa3622-cf06-474d-aee6-0171ddf58acc",
 "clientId":"sb-clone84aa3622cf06474daee60171ddf58acc!b60514|destination-xsappname!b62",
 "expiration":1678174796,"roleCollections":[]}<br>

(the points are to cover the url for confidentiality issues)

Honestly we are very lost, we don't know why it may be failing, so I turn to you for any help or suggestion that could help us solve this problem.

We already reviewed everything that occurred to us, between the destination, the server deployment, the roles and profiles in the users.

We appreciate each and every one of your responses.

Greetings.
Edson.

View Entire Topic
leonikussmaul
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Edson,

What does the URL look like when you're calling the service? Please share the dataSources configuration in your manifest.json if this is where you are making the call from, as you might need to switch from an absolute to a relative URL.

Of course, this would only work if your BTP destination and your xs-app json are configured correctly.

0 Likes

Hello Leoni,

First of all, thanks for your comment, exactly what you say, it was something that we reviewed while we saw why it did not call Odata correctly.

The reason why our app did not show information is because the Destination was configured in another subaccount, with a name similar to the one where the app was hosted and this meant that it did not find anything, therefore, it would never view the information.

Correcting that, we were able to access and see that everything was ok.

Thanks for answering my question.

Have a great day.

Greetings.
ebz.

leonikussmaul
Product and Topic Expert
Product and Topic Expert
0 Likes

Great, thanks for the update - please close this question.

VaradBhagwat
Explorer
0 Likes

I'm getting similar 500 Internal Server error. On checking the Application logs the error is "Error while retrieving destination DIRECT_SERVICE_BINDING from destination service. HTTP status code: 404". On checking the mta.yaml file, there is no DIRECT_SERVICE_BINDING destination, So how to validate what is the correct destination name to be maintained in xs-app.json. FYI; the data source is a local CAP module for binding the Odata v4 service in UI5 app.

Thanks,

Varad