Azure / Azure/azure-kusto-java

SSL Exception From HTTP Apache Client Library

Open
#334 13 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
46
Forks
49
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A clear and concise description of what the bug is.
There is an issue with the HTTP client inside the client library where the request fails every time when we try to retrieve certain elements from ADX (paged response from a stored query result) when it is done with the same parameters (the same pages fail).

**To Reproduce**
Steps to reproduce the behavior:
Create a big stored query result (~1GB) and retrieve the result paged. What seems to appear random, for certain requests the `EntityUtils.toString(entity)` method invocation in the file "com.microsoft.azure.kusto.data.Utils" throws an IOException, because of an SSL exception (see screenshot) about wrong padding, that comes from the HTTP Apache Client library that is used. In the end, it results in a `DataClientException`. This request did/will never succeed even with retries.

**Expected behavior**
With other HTTP clients (OkHttpClient, AsyncHttpClient), cURL and tools like Postman or Insomnia I'm able to do the same request and get the result, without any exception (see screenshot). So maybe a change to another HTTP client library could be a solution.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://github.com/Azure/azure-kusto-java/assets/10854000/680926fc-7176-49b5-876f-7c525947d4a1)
![image](https://github.com/Azure/azure-kusto-java/assets/10854000/ac9ee484-fde3-4b4d-8211-6bc650f5529d)

**Desktop (please complete the following information):**
- OS: MacOS/Linux
- SDK Version: 5.0.2/3

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.