cancel
Showing results for 
Search instead for 
Did you mean: 

Reqeust Reply return HTTP 500 when body is long. But Postman success

suwandi_cahyadi
Contributor
0 Kudos

Hi,

I have an IFlow in CPI with a Request Reply that send a POST request to an external web server, the interface is working fine for small messages. Problem comes when the body is long, the server returns with 500 - Internal Server Error:

<html>
<head><title>500 Internal Server Error</title></head>
<body bgcolor="white">
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>

1 error message example that I check has the Content-Length as 8559 (~9kb). But when the same payload/content is sent from Postman to the web server, the server returns 200, no error.
What could possibly wrong?

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

suwandi_cahyadi
Contributor
0 Kudos

Hi,

I realize, the request will have this error when the server receives certain data length which is sent with header:

Transfer-Encoding: chunked
Sap-Passport: 2A5448xxxxxx
if 1 of those header is omitted, the request can be processed by the server. Is there a way to disable chunking in HTTP request?


Thank you.

former_member226
Employee
Employee
0 Kudos
former_member226
Employee
Employee
0 Kudos

Hello,

Could this be due to the limit mentioned in following document where they say HTTP adapter can only pass 8KB of the header parameter? (BTW: URL endpoint is also part of request header)

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/03b32eb2c5c249f0a59bcd27c44...

If thats the case then there is a hardstop and you need to split your URL into small chunk.

suwandi_cahyadi
Contributor

Hi,

I realize that the request will be error if the request is sent with the Condition: Data is sent in Chunked & there is a Sap-Passport in the header.
Is there a way to disable chunking in HTTP request?