JMIX 1.x app NOT working on AWS - Communication error: Invalid JSON from server: 1|X

So I also had this problem and I also did a lot of investigation and trial and error.

For the application load balancer I use a HTTP client keep alive duration: 3600 seconds. Very long I know. Somehow it seems to help. Also a Connection idle timeout: 900 seconds.

For the nginx proxy configuration I use the following:

            proxy_connect_timeout 600s;
            proxy_read_timeout  900s;
            proxy_send_timeout  900s;

            proxy_set_header    Connection          $connection_upgrade;
            proxy_set_header    Upgrade             $http_upgrade;
            proxy_set_header    Host                $host;
            proxy_set_header    X-Real-IP           $remote_addr;
            proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
            proxy_redirect      off;

I didn’t run into this problem now for quite some time, so it looks like this helps. Also I use newest Jmix (almost) 2.1.3