Unity Issue Tracker - Parse error "The file is corrupt, or compression was misconfigured" when WebGL build is opened
Fixed
UUM-21896
Parse error "The file is corrupt, or compression was misconfigured" when WebGL build is opened
Unity: Web Platform
Fixed
2023.3.X
2023.2.X
2022.3.X
2021.3.X
Verified the issue is fixed in Ubuntu 22.04 in 2023.3.0a17
Reproduction steps:
Open the provided project
Build And Run the project on WebGL platform
Expected result: The build opens without any errors
Actual result: The build opens with an error:
“Unable to parse Build/10d91a12865a7ba6ccc4168c86733d38.js.unityweb! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)”
Reproducible with: 2021.3.4f1, 2021.3.15f1
Not reproducible with: 2020.3.42f1
Could not test with: 2022.1.23f1, 2022.2.0f1, 2023.1.0a21 (Sysroot Base package errors when converting to other Unity Editor versions)
Reproducible on: macOS 13.0 (M1 Max), macOS 13.0.1 (Intel)
The Unity WebGL build replaced "g=$&th^~$&sh" in sha512.min.jspre with "g=Module["USER_JSPRE_PLACEHOLDER"] = "USER_JSPRE_PLACEHOLDER";th^~Module["USER_JSPRE_PLACEHOLDER"] = "USER_JSPRE_PLACEHOLDER";sh"
Unknown regression version
Prioritise and Follow this issue
Have a workaround or additional info about this issue?