I tried to do some modifications but still I can't print this large json file.
I use the asynchronous version of your library.
Now the 5.8 MB file is compressed (removing all spaces) in 3.4 MB but I have a 504 error.
Here some snippets of the HAR file:
"bodySize": 3403549
{
"_initiator": {
"type": "preflight",
"url": "https://techmakers.jsreportonline.net/api/report"
},
"_priority": "High",
"_resourceType": "preflight",
"cache": {},
"connection": "203421",
"pageref": "page_2",
"request": {
"method": "OPTIONS",
"url": "https://techmakers.jsreportonline.net/api/report",
"httpVersion": "http/2.0",
"headers": [
{
"name": ":authority",
"value": "techmakers.jsreportonline.net"
},
{
"name": ":method",
"value": "OPTIONS"
},
{
"name": ":path",
"value": "/api/report"
},
{
"name": ":scheme",
"value": "https"
},
{
"name": "accept",
"value": "/"
},
{
"name": "accept-encoding",
"value": "gzip, deflate, br"
},
{
"name": "accept-language",
"value": "it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7"
},
{
"name": "access-control-request-headers",
"value": "authorization,content-type"
},
{
"name": "access-control-request-method",
"value": "POST"
},
{
"name": "origin",
"value": "https://test.documaker.it"
},
{
"name": "referer",
"value": "https://test.documaker.it/"
},
{
"name": "sec-fetch-dest",
"value": "empty"
},
{
"name": "sec-fetch-mode",
"value": "cors"
},
{
"name": "sec-fetch-site",
"value": "cross-site"
},
{
"name": "user-agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
}
],
"queryString": [],
"cookies": [],
"headersSize": -1,
"bodySize": 0
}
"response": {
"status": 504,
"statusText": "",
"httpVersion": "",
"headers": [
{
"name": "content-length",
"value": "534"
},
{
"name": "content-type",
"value": "text/html"
},
{
"name": "date",
"value": "Thu, 28 Jul 2022 14:12:00 GMT"
},
{
"name": "server",
"value": "awselb/2.0"
}
],
"cookies": [],
"content": {
"size": 0,
"mimeType": "x-unknown"
},
"redirectURL": "",
"headersSize": -1,
"bodySize": -1,
"_transferSize": 0,
"_error": "net::ERR_FAILED"
}
Please, may I send you the HAR file so you can check where is the problem?
Thank you very much.