Stackoverflow due to long request string

Occurrence
Throwing a 4000 character query against an Elasticsearch data node causes a Stackoverflow and stops the Elasticsearch service.

Elasticsearch Version
8.6.2

Requests
1.Whether or not a similar problem occurs.
2. Advice on how to resolve this issue

Hi @futonirou.sarami,

Welcome to the community! Can you share the query that is causing the issue, along with the response and error text you see?

Also please upgrade to the latest version to see if this has been solved in the meantime.