I'm having trouble accessing Metabase. ERR_INCOMPLETE_CHUNKED_ENCODING

I'm having trouble accessing Metabase. The initial HTML loads, but the JS assets return an ERR_INCOMPLETE_CHUNKED_ENCODING error.

The styles.bundle.js file fails even when accessed directly via a browser.

The error "webpackJsonp is not defined" also appears.

I've already tested on:

another device, another Wi-Fi network, 4G, incognito mode, updated browser, mobile app, and with Windows Defender disabled.

Another user can access it normally in a different region.

The response header indicates content encoding: gzip.

Everything indicates that the JS packets are being delivered truncated to my route/IP/region.

Where is your Metabase instance hosted?

selfhosted on aws

Are you running Metabase through an API Gateway or a reverse proxy? And/or anything that might be applying a WAF? Or CloudFront?

Through the API gateway. Regarding the services, I believe it's a WAF, but I would have to confirm with the team.

A WAF on API Gateway is likely what’s causing your random errors. You’ll need to review the WAF logs and tune the rules to remove the false positives. Also make sure the rate limits aren’t set too low and are triggering on large dashboard loads.