[ci-stats-reporter] prevent Request body larger than maxBodyLength limit error (#128840) (#128845)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit db7db0e4ca)

Co-authored-by: Spencer <spencer@elastic.co>
This commit is contained in:
Kibana Machine 2022-03-29 21:25:43 -04:00 committed by GitHub
parent 522b2315e9
commit e810a1cc4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -312,6 +312,10 @@ export class CiStatsReporter {
data: body,
params: query,
adapter: httpAdapter,
// if it can be serialized into a string, send it
maxBodyLength: Infinity,
maxContentLength: Infinity,
});
return resp.data;

View file

@ -9288,7 +9288,10 @@ class CiStatsReporter {
headers,
data: body,
params: query,
adapter: _http.default
adapter: _http.default,
// if it can be serialized into a string, send it
maxBodyLength: Infinity,
maxContentLength: Infinity
});
return resp.data;
} catch (error) {