title: Response of an Http request not contain the whole data
body: <p>I send a http POST request to an azure timeseries insights by using the standard Spring Boot weblient.</p>
  <p>Inside the response body I miss values.</p>
  <p><strong>Environment</strong>:</p>
  <ul>
  <li>Windows 10</li>
  <li>Java 11 (ibm-semeru_jdk-11.0.13+8_openj9 and amazon-corretto_jdk11.0.13_8)</li>
  <li>Spring Boot 2.5.6</li>
  <li>OkHttpClient 4.9.2</li>
  <li>IntelliJ IDEA 2021.2.3</li>
  </ul>
  <p>Here are my steps:</p>
  <p>I try this with the spring boot webclient</p>
  <pre><code>final ResponseEntity&lt;String&gt; responseEntity = webClient.post()
                                                         .uri(tsiUrl)
                                                         .header(HttpHeaders.AUTHORIZATION, &quot;Bearer &quot; + token)
                                                         .contentType(MediaType.APPLICATION_JSON)
                                                         .bodyValue(requestBody)
                                                         .retrieve()
                                                         .toEntity(String.class)
                                                         .block();
  return responseEntity != null ? responseEntity.getBody() : null;
  </code></pre>
  <p>and this with OkHttpClient (to verify the response, but I get the same reponse content)</p>
  <pre><code>public class App 
  {
      public static final okhttp3.MediaType JSON = okhttp3.MediaType.get(&quot;application/json; charset=utf-8&quot;);
  
      public static void main( String[] args )
      {
          String requestBody = &quot;{\n&quot;
                        + &quot;    \&quot;aggregateSeries\&quot;: {\n&quot;
                        + &quot;        \&quot;searchSpan\&quot;: {\n&quot;
                        + &quot;            \&quot;from\&quot;: \&quot;2021-01-01T00:00Z\&quot;,\n&quot;
                        + &quot;            \&quot;to\&quot;: \&quot;2021-12-31T00:00:01Z\&quot;\n&quot;
                        + &quot;        },\n&quot;
                        + &quot;        \&quot;timeSeriesId\&quot;: [\n&quot;
                        + &quot;            \&quot;edge-goldwind-qa-002-astraios\&quot;,\n&quot;
                        + &quot;            \&quot;GcmProcessed\&quot;\n&quot;
                        + &quot;        ],\n&quot;
                        + &quot;        \&quot;interval\&quot;: \&quot;P1D\&quot;,\n&quot;
                        + &quot;        \&quot;inlineVariables\&quot;: {\n&quot;
                        + &quot;            \&quot;gcm01DeteriorationMax\&quot;: {\n&quot;
                        + &quot;             \&quot;kind\&quot;: \&quot;numeric\&quot;,\n&quot;
                        + &quot;             \&quot;value\&quot;: {\n&quot;
                        + &quot;                  \&quot;tsx\&quot;: \&quot;$event.GCM01Deterioration.Double\&quot;\n&quot;
                        + &quot;              },\n&quot;
                        + &quot;              \&quot;filter\&quot;: null,\n&quot;
                        + &quot;              \&quot;aggregation\&quot;: {\n&quot;
                        + &quot;                  \&quot;tsx\&quot;: \&quot;max($value)\&quot;\n&quot;
                        + &quot;              }\n&quot;
                        + &quot;          },\&quot;gcm01TemperatureOpticsMax\&quot;: {\n&quot;
                        + &quot;             \&quot;kind\&quot;: \&quot;numeric\&quot;,\n&quot;
                        + &quot;             \&quot;value\&quot;: {\n&quot;
                        + &quot;                  \&quot;tsx\&quot;: \&quot;$event.GCM01TemperatureOptics.Long\&quot;\n&quot;
                        + &quot;              },\n&quot;
                        + &quot;              \&quot;filter\&quot;: null,\n&quot;
                        + &quot;              \&quot;aggregation\&quot;: {\n&quot;
                        + &quot;                  \&quot;tsx\&quot;: \&quot;max($value)\&quot;\n&quot;
                        + &quot;              }\n&quot;
                        + &quot;          }\n&quot;
                        + &quot;        },\n&quot;
                        + &quot;        \&quot;projectedVariables\&quot;: [\n&quot;
                        + &quot;            \&quot;gcm01DeteriorationMax\&quot;,\n&quot;
                        + &quot;            \&quot;gcm01TemperatureOpticsMax\&quot;\n&quot;
                        + &quot;        ]\n&quot;
                        + &quot;    }\n&quot;
                        + &quot;}&quot;;
  
          String token = &quot;bearertoken&quot;; //removed original bearer token
  
  
          try {
              OkHttpClient client = new OkHttpClient();
              Request request = new Request.Builder()
                      .header(&quot;Authorization&quot;, &quot;Bearer &quot; + token)
                      .url(&quot;https://1ff924d7-55b5-48c7-8c29-7fcbc18b8776.env.timeseries.azure.cn/timeseries/query?api-version=2020-07-31&amp;storeType=WarmStore&quot;)
                      .post(RequestBody.create(requestBody, JSON))
                      .build();
              Response response = client.newCall(request).execute();
              final ResponseBody body = response.body();
              final String string = body.string();
          } catch (Exception e) {
              e.fillInStackTrace();
          }
      }
  }
  
  </code></pre>
  <p>and I send this POST body:</p>
  <pre><code>{
      &quot;aggregateSeries&quot;: {
          &quot;searchSpan&quot;: {
              &quot;from&quot;: &quot;2021-01-01T00:00Z&quot;,
              &quot;to&quot;: &quot;2021-12-31T00:00:01Z&quot;
          },
          &quot;timeSeriesId&quot;: [
              &quot;edge-goldwind-qa-002-astraios&quot;,
              &quot;GcmProcessed&quot;
          ],
          &quot;interval&quot;: &quot;P1D&quot;,
          &quot;inlineVariables&quot;: {
              &quot;gcm01DeteriorationMax&quot;: {
               &quot;kind&quot;: &quot;numeric&quot;,
               &quot;value&quot;: {
                    &quot;tsx&quot;: &quot;$event.GCM01Deterioration.Double&quot;
                },
                &quot;filter&quot;: null,
                &quot;aggregation&quot;: {
                    &quot;tsx&quot;: &quot;max($value)&quot;
                }
            },&quot;gcm01TemperatureOpticsMax&quot;: {
               &quot;kind&quot;: &quot;numeric&quot;,
               &quot;value&quot;: {
                    &quot;tsx&quot;: &quot;$event.GCM01TemperatureOptics.Long&quot;
                },
                &quot;filter&quot;: null,
                &quot;aggregation&quot;: {
                    &quot;tsx&quot;: &quot;max($value)&quot;
                }
            }
          },
          &quot;projectedVariables&quot;: [
              &quot;gcm01DeteriorationMax&quot;,
              &quot;gcm01TemperatureOpticsMax&quot;
          ]
      }
  }
  </code></pre>
  <p>The result of the <strong>Spring Boot webclient</strong> and <strong>OkHttpClient</strong> (<strong>not expected</strong>)</p>
  <pre><code>{&quot;values&quot;:[null,..,null,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,null,...,null],&quot;name&quot;:&quot;gcm01DeteriorationMax&quot;,&quot;type&quot;:&quot;Double&quot;}
  </code></pre>
  <p>(I removed all the null values, to see the differences simple)</p>
  <p>But if I send the same POST with <strong>Postman</strong> I get this result (<strong>expected</strong>):</p>
  <pre><code>{&quot;values&quot;:[null,..,null,69.209999084472656,95.569999694824219,87.209999084472656,90.419998168945313,89.419998168945313,65.120002746582031,73.19000244140625,75.6500015258789,77.44000244140625,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,100.0,null,null,null,null,null,null,null,null,null,100.0,100.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,null,..,null],&quot;name&quot;:&quot;gcm01DeteriorationMax&quot;,&quot;type&quot;:&quot;Double&quot;}
  </code></pre>
  <p>As you can see the result of the Postman contains more values and less null values.
  I have tried the same POST with .Net Core 5 httpclient and I get the same results as with the Postman.</p>
  <p>My question is, does anyone have an idea what is going wrong here?</p>