`HTTP 414 request-URI too large` for large API requests

I’m implementing a existing Magento 1.9 shop.
I now added all filters that we are using for our list-view and stumbled about the HTTP 414 request-URI too large error in Nginx which we are using as proxy in front of the API and VSF. I try to load around 50 attributes into list filter and the request againt the API fails because of the too large request-header (including the elasticsearch query as string).

Has anyone expirience with this error?

I tried to increase the buffer-sizes in Nginx like following, but then getting an error 400:

client_max_body_size 24M;
client_body_buffer_size 128k;
client_header_buffer_size 5120k;
large_client_header_buffers 16 5120k;

Wouldn’t it maybe be better to send large queries like this via POST instead of GET to prevent this problem?

@cewald You could try to set your elasticsearch queryMethod to POST instead of GET as described here: https://docs.vuestorefront.io/guide/basics/configuration.html#elasticsearch.
POST requests don’t have a character limit.

Oh nice. Great! I didn’t knew of this config value, awesome.
Thanks for your help!!