Hi, currently I’m facing this issue that when the initial process of getting the content catalog from remote have fail or some thing happen I received this after I call LoadAssetAsync Unable to load ContentCatalogData from location AddressablesMainContentCatalog.
I’ve register the delegate when the LoadAssetAsync process fail it’ll call the LoadAssetAsync again but the second time will return a error Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown.
I guess that when the catalog fail to get at first time no key will be register to the device then every keys will be invalid.
Why calling LoadAssetAsync in the first place get the content catalog while other time it won’t?
How can I retry to load the ContentCatalog again? The LoadContentCatalogAsync require path parameter but I don’t know how to the value for that?
Unity 2020.1.9f1
Addressable.1.13.1. (Can’t afford to update newer version )
Sorry for my bad english
The RemoteCatalogLoadPath can be retrieved from the Settings object using this: AddressableAssetSettingsDefaultObject.Settings.RemoteCatalogLoadPath.GetValue(AddressableAssetSettingsDefaultObject.Settings);
Sounds like you may be running into a bug. Could you submit bug report with a repro project? Also would be helpful to include the name of the device you are using.
@pillakirsten
Thanks, as a work around I used the path from AddressableAssetSettingsDefaultObject.Settings.RemoteCatalogLoadPath.GetValue and pass it to the LoadContentCatalogAsync and it kinda work. I encountered this on Unity2020.19f1 editor also every device I deployed to.
I’ll try to create a empty project and submit a bug report with that but I encountered this with addressable 1.13.1 so I think the newest version has fixed this issues. But the project has been deployed and run to production with so many workaround so I don’t think I will update the package in near future