Hi Anusha,
So your payload is
{
"Req": {
"enc": "a very large payload represented most probably as a base 64 string"
}
}
Obviously that's a very large JSON value string. If you were parsing on DataPower you'd get a parse error unless you specified a custom parse settings, but given that HTML error message you're getting isn't generated by API Connect, I'd imagine it must be coming from a backend server your API is communicating with. Your log message Error in stream. Descriptor number unavailable. Additional information: Read error (7)
I don't see how you'd get a response at all if you were having that type of issue. Are you sure that message is from the same transaction id? I'd suggest you open a PMR/Support ticket to have L2 Support provide assistance with the API, error report/logs, and a packet capture that would collect traffic to the inbound to the API Connect service and outbound to any backend server, also with the tls session keys enabled on the capture.
Best Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------
Original Message:
Sent: Fri November 03, 2023 01:10 AM
From: Anusha Pudari
Subject: DataPower Log Error: Error in stream. Descriptor number unavailable. Additional information: Read error (7)
Can you please check on the above issue and give a appropriate solution.
------------------------------
Anusha Pudari
Original Message:
Sent: Thu November 02, 2023 11:40 AM
From: Anusha Pudari
Subject: DataPower Log Error: Error in stream. Descriptor number unavailable. Additional information: Read error (7)
Hi All,
I am currently experiencing an issue in API Connect when attempting to use an encrypted request (Reference: Attached encReq - 2.33MB in size) as described below.
In the DataPower log, I have encountered the following error message: 'Error in stream. Descriptor number unavailable. Additional information: Read error (7)'
The API response I'm receiving is in the form of an HTML error message:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML; CHARSET=utf-8" />
<title>Error</title>
</head>
<body>
<H2>Error</H2>
<table summary="Error" border="0" bgcolor="#FEEE7A" cellpadding="0" cellspacing="0" width="400">
<tr>
<td>
<table summary="Error" border="0" cellpadding="3" cellspacing="1">
<tr valign="top" bgcolor="#FBFFDF" align="left">
<td><STRONG>Error</STRONG></td>
</tr>
<tr valign="top" bgcolor="#FFFFFF">
<td>This page can't be displayed. Contact support for additional
information.<br/>The incident ID is: N/A.</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Interestingly, the issue only occurs when using an encReq of size 2.33MB. When I use an encReq of size 1.74MB, everything works as expected.
Please take note that I have already configured parse settings for maximum lengths. Could you kindly assist me in resolving this issue?"
------------------------------
Anusha Pudari
------------------------------