How to handle no internet while downloading remote assets.

Hi ,
In my case all the assets are in the remote. I need to handle two scenarios.

  1. Need to handle ‘Cannot resolve destination host’
    i am using Addressables.LoadAssetsAsync method to load assets .My Addressable version is 1.8.4 and Unity version 2019.4.7, though I am getting this error belowin my editor console

Exception encountered in operation Resource(jsonfiles_assets_all_65a135ae47e5309280ae9560ff9b8806.bundle): RemoteAssetBundleProvider unable to load from url https:bundlepath.bundle, result=‘Cannot resolve destination host’.
UnityEngine.AsyncOperation:InvokeCompletionEvent() (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)

is there a way to catch this same exception in my own class.

  1. in the second scenario even though i have modified timeout set at 120 and retry option set at 3 in the addressables group settings for each group.
    In the middle of asset download from remote if internet get disconnected my asset progress stops , but there is no callback mechanism to raise timeout event or error response code. Is there any way to catch this timeout error code in the current or updated addressable package.

Thanks

1 Like

Same problem here

The error message for a timeout would be “request timeout”. I would expect “Cannot resolve destination host” to be an error before timeout triggers though.
To handle download errors we have some docs here AssetBundle Loading | Addressables | 1.20.5 it isn’t as straight forward as we like but can be handled