Move query to req body instead of uri #23
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi
My team and I are using this library, and it's really great.
Yesterday, we stumbled upon a problem with one of our queries.
We have a huge query (Can't paste it here because of our db privacy:)),
and we got an error from our Click house server:
The problem is, that in "_getRequestOptions" the query is forward inside the URI,
and there is a limit of that: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414
So I moved the query to the request body, you can see in the CH documentation that they support the query in the URI and in the body as well: https://clickhouse.com/docs/en/interfaces/http/#cli-queries-with-parameters
After that change, the problem solved for us.
Many thanks for your work!
Ilan