Search Unity

Weird exception with addressables on WebGL (remote)

Discussion in 'Addressables' started by Darkwing_Duck, Dec 1, 2018.

  1. Darkwing_Duck

    Darkwing_Duck

    Joined:
    Sep 29, 2016
    Posts:
    11
    Hello, I have a trouble with addressables on WebGL.
    I tested in editor, it works fine with Packed Mode.
    But when I build and put files on server I get the error:

    Exception: RawDataProvider unable to load from url file:///idbfs/74b9fc3c6e119316d901301d7f352a4a/com.unity.addressables/catalog_BuildScriptPackedMode.hash, result='Unknown Error'.




    And I have a StreamingAssets folder with local addressables content. After build I have next:



    I don't know what I do wrong. Any ideas?

    Update:
    I found in "settings.json" the path:
    Code (CSharp):
    1.  
    2. {UnityEngine.Application.persistentDataPath}/com.unity.addressables/catalog_BuildScriptPackedMode.hash
    and replace it with :
    Code (CSharp):
    1. {UnityEngine.AddressableAssets.Addressables.RuntimePath}/WebGL/catalog_BuildScriptPackedMode.hash
    and it starts work!
    So, why there is wrong path in settings.json file?
     
    Last edited: Dec 2, 2018
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Without knowing what variable is set in the JSON above, I can really only guess. The issue is probably caused by one of two things:
    1. we have a bug.
    2. you put the wrong path in the settings for one of your groups. Most commonly this is due to setting something like a LoadPath to one of the BuildPath variables.

    Some more details as to where you found that persistentDataPath string would probably help.