Error: Maximum response size reached

Created by Steve Place, Modified on Tue, 12 Dec 2023 at 09:49 AM by Steve Place

If you get this error when sending a query with an API platform like Postman, it means the query results are too large for Postman to receive the response. This error is often accompanied by java.io.IOException: Broken pipe in stardog.log.


You have two options for how to proceed from here. One is to increase the maximum response size allowed by your API platform. You can see this article for how to do this in Postman.


Alternatively, you can page your results with the LIMIT and OFFSET keywords. Your query would look like this:

SELECT [variables]
{
  [query body]
}
LIMIT X
OFFSET Y

replacing X with whatever limit you want. You can start Y at 0 and increase it by multiples of X until you've gotten the full result set.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article