cancel
Showing results for 
Search instead for 
Did you mean: 

Post payload to CPI iFlow from UI5 - Internal Server Error

andreeav
Explorer
0 Kudos

I need to send a JSON payload to an iFlow, in Postman the request is successful (with OAuth2 token retrieval and csrf in header), but the response in UI is Internal Server Error (the iFlow is also expecting JSON).

  • I am getting csrf token from GET request to CPI instance and pass it in the following POST request to CPI endpoint :

andreeav_0-1713953748556.png

 

  • The destination configuration is the following and added in xs-app.json andreeav_0-1713954109632.png

     

andreeav_2-1713953748536.png

Also curl -v -i cpi.dest returns 500

* Cpi destination and UI5 app are in different subaccounts.

- What could be the cause of this?

Accepted Solutions (0)

Answers (2)

Answers (2)

tobias_renth
Participant
0 Kudos

Cpi destination and UI5 app are in different subaccountsCpi destination and UI5 app are in different subaccounts ->

I would guess this is the reason for the issue. The app can only work with destinations in the same subaccount. If you check the logs of the app in BTP cockpit after the failed call, my assumption would be that you find a message where it tells that it could not find a destination with the name cpi.

Dinu
Contributor
0 Kudos

I'm not sure if this is the issue, additional property HTML5.ForwardToken only makes sense together with No Authentication.