0

I am doing an excel file download using angular + springboot and the api returns application/json file. The transfer-encoding:chunked is always enabled and i see responses return http 1.1 .

I posted this on stackoverflow but haven't gotten any solution. Please help as I am stuck for quite sometime on what to do.

error is polyfills.35a5ca1855eb057f016a.js:1 POST https://fff.com///RETRIEVE_ALL_BLOCKS net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 nginx.conf file

worker_processes  1;

events {
 worker_connections  1024;
}

http {
  gzip  on;
  gzip_http_version 1.0;
  gzip_comp_level 2;
 gzip_min_length 1100;
 gzip_buffers     4 8k;
 gzip_proxied any;
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
application/x-javascript
text/xml
text/plain
text/x-component
application/javascript
application/json
application/xml
application/rss+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
gzip_static on;
{"
   gzip_proxied  expired no-cache no-store private auth;
   gzip_disable  "MSIE [1-6]\.";
   gzip_vary on;

 server {
     listen 8080;
     server_name  localhost;

   root   /usr/share/nginx/html;
   index  index.html index.htm;
   include /etc/nginx/mime.types;

  location / {
     try_files $uri $uri/ /index.html;
  }

My response header :

HTTP/1.1 200
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: *
Connection: keep-alive
Content-Type: application/json
Date: Fri, 08 Jul 2022 18:54:48 GMT
Strict-Transport-Security: max-age=15724800; includeSubDomains
Transfer-Encoding: chunked
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers

Request headers :

Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 0
Authorization: Bearer
Cache-Control: no-store
Connection: keep-alive
Content-Length: 292
Content-Type: application/json
If-Modified-Since: 0
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.143 
 OpenFin/25.100.70.3 Safari/537.36
 max-age: 0

0 Answers0