cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Bad request error in HTTP PUT request

0 Kudos
1,858

Hi Experts,

We have a service which is accessible using postman with one manual header value added.

While calling it from CPI, i have added header property using content modifier and set up HTTP receiver as below.

I am getting 400 bad request error. Any leads are appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Mujeeb,

If you are sure that correct payload is being passed then please try to delete unwanted headers ( follow below blog ) that might help you.

https://blogs.sap.com/2018/01/18/sap-cpi-clearing-the-headers-reset-header/

Regards,

Sriprasad Shivaram Bhat

0 Kudos

Hello Sri, I dont see any unusual header in trace, see below. last one is manually added.

Payload is fine as well. posted the same payload from trace in postman and it works.

0 Kudos

Was having trouble adding this, so attaching separately.

Answers (1)

Answers (1)

0 Kudos

Please check if you are passing JSON body correctly in the content modifier. This error usually comes when the request is being passed in valid format.

0 Kudos

Hi Ashwini,

I am passing Json as it is. See the screenshot