cancel
Showing results for 
Search instead for 
Did you mean: 

Error during request to remote service: Failed to load destination.

devangelgb
Explorer
590

Hello everybody,

Could you someone assist me with this error.

Case: I'm consume external odata in my CAP project. When i get the entities, it return this error.

ErrorError during request to remote service: Failed to load destination.

devangelgb_0-1722432212679.png

Best regards,

Angel

devangelgb
Explorer
0 Kudos

Hello everybody,

I share more information about my cap app.

  • Testing locally.

ERROR: Could not find service binding of type 'destination'. This might cause errors in other parts of the application.

Error 1: Error during request to remote service: Failed to load destination.

devangelgb_0-1722467852438.png

Error 2: Error during request to remote service: Failed to load destination. Caused by: No user token (JWT) has been provided. This is strictly necessary for 'PrincipalPropagation'.

devangelgb_0-1722469081600.png

Error 3: Authentication kind "xsuaa" configured, but no XSUAA instance bound to application. Either bind an XSUAA instance, or switch to an authentication kind that does not require a binding.

devangelgb_0-1722469907536.png

Error: 4: No service matches destination

devangelgb_0-1722519944022.png

 

 

 

  • MTA confi about service instance.

devangelgb_1-1722468005941.png

  • My destination config.

devangelgb_2-1722468682248.png

  • Resources for my cap app from mta

devangelgb_3-1722468843565.png

 

 

View Entire Topic
WouterLemaire
Active Contributor
0 Kudos

What Gregor says.

You have no destination service bound to your cap app. Look at this repo as example for the config: https://github.com/lemaiwo/ReCAPBTPServiceOverview/blob/main/mta.yaml

At line 28 the destination service is bound to the cap app which is instantiated at line 90

 

devangelgb
Explorer
0 Kudos

My app is bound when I tested locally. It returns a error.

Error during request to remote service: Failed to load destination. Caused by: No user token (JWT) has been provided. This is strictly necessary for 'PrincipalPropagation'.

devangelgb_0-1722465501899.png

 

WouterLemaire
Active Contributor
0 Kudos
When consuming external services with principal propagation you need to use a local approuter for testing. Can you maybe share it using git?
devangelgb
Explorer
0 Kudos

Hello Wouter, I notice my approuter instance, for instance propagate my user, but my service instance being not done. I'm trying to connect approuter instance by destination, it cloud not work. My context is that I build my CAP and UI5 apps separate. Moreover I connect these apps using OAuth2ClientCredentials throught destination using the url povides from Approuter instance but it returns 401 when i test my destination. When I use url provides from service instance the conenction is work, but no propagate my user.

Service Instance destination

devangelgb_1-1723587513566.png

It returns entities.

devangelgb_0-1723582775618.png

testing url provide from instance return 401.

devangelgb_4-1723588009350.png

Approuter Instance destination

devangelgb_0-1723587452636.png

No load nothing.

devangelgb_2-1723587722696.png

testing url provide from instance return data.

devangelgb_3-1723587941152.png

 

 

 

 

Do you have any idea to connect CAP and UI5 by separate using destitination?