cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP call to target system failing with Error 500: SAP CPI

former_member440061
Participant

Hello,

I have a scenario where I need to send data to a system via Cloud Connector through HTTP adapter. For this to work, I should first obtain an access token through a call made to same system and then use that token as a header in further calls to GET/PUT or POST.

Basis Team did necessary changes in Cloud Connector to set up the connection to the target system. Also I am able to get the token using http://host:80/server/sessioninfo and this works fine.

However, I am getting the following error while trying to do another GET request to the following end-point:

http://host:80/api/v1/collection/person?$filter=tolower(e_mail)%20eq%20%27test@email.com%27

or

http://host:80/api/v1/collection/person?$filter=tolower(e_mail) eq 'test@email.com'

Error:

This request works fine with POSTMAN, but fails with CPI.

I am adding the following headers explicitly using a content-modifier or a script in iflow:

X-Csrf-Token

Cookie

Authorization

CamelHttpQuery

Given below is the screenshot from Cloud Connector:

Is there anything that I am missing here? Any help will be highly appreciated. Thanks in advance!

Regards,

Faisal

former_member440061
Participant
0 Kudos

Hi Everyone,

Any hints, please?

View Entire Topic
jonatansa
Explorer
0 Kudos

Hello!

How did you manage to solve this?

Thanks!