on 2024 Jul 26 2:12 PM
Hello Community,
I am trying to connect to remote OData service via BTP Destination, it is working fine.
But for every change done in SAP CAP application, it requires the deployment of application to BTP.
So i wanted to test it locally connecting to the Remote OData Service but when i try cds watch --profile hybrid it fails the with this error "Error during request to remote service: Failed to load destination. Caused by: Could not find service binding of type 'destination'."
Requesting guidance how to connect to remote odata service from vs code, which reduces turn around time required for deployment to BTP and will be able test it locally in vs code for the changes carried.
Request clarification before answering.
You have to bind to destination service. You can either bind to all the services including destination of a deployed application(bookshop-srv) using
cds bind --to-app-services bookshop-srv
or bind to destination service(destination-service-name) independently
cds bind -2 destination-service-name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check if you configured remote service correctly from the CAP side: https://cap.cloud.sap/docs/guides/using-services#connect-and-deploy,
Check your package.json configuration and your model: https://cap.cloud.sap/docs/guides/using-services#expose-remote-services
Check your CF configuration: There is a nice tutorial regarding remote service here https://developers.sap.com/tutorials/btp-app-ext-service-add-consumption.html#0a5ed8cc-d0fa-4a52-bb5...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.