Spring Boot Application No Body Returned for Response

245 views Asked by At

we are building a web service with Java 11, Spring Boot 2.7.3 & Apache Olingo 4.8.0 everything was working fine until we test a request and expecting a extremely huge response. The response should be over 1 GB. But the response is empty with insomnia:

enter image description here

Then I write a piece of script with Python 3.8.10 and printed the response.content:

b''

Same error with curl.

Anyone could please advise? Thanks in advance!


Update:

I can confirm the issue is associated with Apache Olingo OData 4.0 Java. Empty response is returned by ODataSerializer.entityCollection() when we passed 4024538 entities. I am wondering if anyone could advise?

0

There are 0 answers