WebGL - Asset Bundle download is complete, but no data have been received

Hello

Unity 2022.1.23f1
Addressables 1.20.5

I am working on a project where I am in the process of switching to addressables. I am building a remote catalogue and uploading it into an AWS S3 bucket. The prefabs download correctly from the S3 bucket when I launch the project locally.
However, I get this error when I create a WebGL build and run it in a browser:

“Asset bundle download completed, but no data was received”.

I’m logging the URL of the catalogue and the URL is correct, the permission of the s3 bucket is also set to public.

In addition, I am getting the following error
“RemoteProviderException : Unable to load asset bundle from : https://notofinterest.s3.eu-central-1.amazon…_unitybuiltinshaders_9522e09160790729dbe8c41e0c4c003a.bundle UnityWebRequest result : ConnectionError : No data received in response ResponseCode : 200, Method : GET”

This message is also quite ironic, I mean, an http status of 200 means that the request was successful. But here I get an error.

“OperationException : GroupOperation failed because one of its dependencies failed RemoteProviderException : Unable to load asset bundle from : https://notofinterest.s3.eu-central-1.amazon…bGL/default_assets_all_fe7bd4b31316acf1e50ce250f644065a.bundle UnityWebRequest result : ConnectionError : No data received in response ResponseCode : 200, Method : GET”.

But somehow the bundle is stored in the indexDB:
“[UnityCache] ‘https://notofinterest.s3.eu-central-1.amazon…bGL/default_assets_all_fe7bd4b31316acf1e50ce250f644065a.bundle’ successfully downloaded and stored in indexedDB cache”.

The size of the entry also matches the size of the bundle when I check the indexDB.
What is the meaning of this message? On the one hand, it tells me that there is no data within the reply. On the other hand, the response has some data and the size of the file also matches what I can see in my build output.

Hi @geop_trilux what bundle compression are you using, and is it possible to upgrade the project to 2022.2? We recently fixed an similar issue where compressed bundles fail to download correctly.

If the issue still persists after upgrading, I would suggest submitting a bug report.

Hello,

Bundle compression is disabled.

I updated the unity version to 2022.2.10 and the addressable package version to 1.21.8. This solved the problem.

Unfortunately, it has increased the build time by a factor of 4. Instead of building a release in 5 minutes, it now takes 21 minutes.
I suspect this is related to the problem:

and

Do you have any idea if this is of priority and when we can expect a fix?

Kind regards

@geop_trilux Interesting glad to hear that the first issue was resolved. Not sure about the priority of the slow WebGL builds issue, but will share this thread with the WebGL team.

@geop_trilux Are you making a development or release build?