stac-server icon indicating copy to clipboard operation
stac-server copied to clipboard

Is limit of 10000 reasonable?

Open philvarner opened this issue 3 years ago • 2 comments

The STAC API search default max limit is 10000. Is that reasonable for this implementation?

philvarner avatar Mar 09 '22 16:03 philvarner

Along these same lines. AWS lambdas have a response limit of 6MB. Right now, if the response is > 6MB, the api logs the lambda error (413), but then passes an ambiguous server error on to the client (as far as I can tell).

Can stac server pass the 413 through to the client so that they know they have hit a limit. Not the 10000 response limit, but the 6MB lambda limit.

jlaura avatar Apr 05 '22 17:04 jlaura

I think it's probably possible to do this with express middleware -- I don't have much experience with with, but most frameworks allows you to set a max response size and return whatever status code if that's exceeded.

philvarner avatar Apr 06 '22 18:04 philvarner