I just had the same issue. I use websockets in my application so removing them is not an option. After changing my settings from inet6
to inet4
helped.
config :my_app, MyAppWeb.Endpoint,
http: [:inet4, port: System.get_env("PORT") || 8080],
cache_static_manifest: "priv/static/cache_manifest.json"