cancel
Showing results for 
Search instead for 
Did you mean: 

$batch request fails with different codes

0 Kudos

Hi Comunity!

We trying to setup a fullstack app with node.js based CAP backend, and a UI5 frontend. We managed to create a destination, which can connect the two parts. At least, the first requests to the service are successful, as you can see below.

However, when it gets to the $batch request, to actually load the data from the backend, it fails. If I try to test the frontend from BAS, it shows 'internal server error', after deployment to the Cloud Foundry environment, it shows '403 - Forbidden' error.

The backend service's security settings configured to grant authorities to apps ('grant-as-authority-to-apps'), so I guess the problem should be somewhere else... But where? This is the question... Thanks for the suggestions!

Accepted Solutions (0)

Answers (2)

Answers (2)

WouterLemaire
Active Contributor
0 Kudos

the path in the ui app is not correct. Check the datasource in the manifest and remove the first slash of the path.

junwu
Active Contributor
0 Kudos

you can see the difference in the url.

how you made the batch call?

how your model is defined?