Search Unity

[Help] Exception: RawDataProvider unable to load from url.

Discussion in 'Addressables' started by WellC, Nov 16, 2018.

  1. WellC

    WellC

    Joined:
    Mar 2, 2015
    Posts:
    48
    upload_2018-11-16_16-19-37.png

    upload_2018-11-16_16-20-1.png
    • Platform:iPhone X
    • OS:iOS12
    • Unity:Unity2019
    Code (CSharp):
    1. Initializing caching system.
    2. UnityEngine.AddressableAssets.CacheInitialization:Initialize(String, String)
    3. UnityEngine.ResourceManagement.JsonAssetProvider:Convert(DownloadHandler)
    4. UnityEngine.AddressableAssets.InitializationOperation:OnDataLoaded(IAsyncOperation`1)
    5. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    6. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    7. (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    8.  
    9. 2018-11-16 16:11:12.351667+0800 treasurehunter[28915:1421121] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
    10. 2018-11-16 16:11:12.352732+0800 treasurehunter[28915:1421097] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
    11. 2018-11-16 16:11:12.352760+0800 treasurehunter[28915:1421097] Cannot start load of Task <2A831FC1-8734-4C93-9EFB-A82CF3ECEBC5>.<0> since it does not conform to ATS policy
    12. 2018-11-16 16:11:12.352790+0800 treasurehunter[28915:1421097] NSURLConnection finished with error - code -1022
    13. Exception: RawDataProvider unable to load from url file:///var/mobile/Containers/Data/Application/0E37BD21-5676-4B0A-90C3-C06907145989/Documents/com.unity.addressables/catalog_2018.11.16.08.06.37.hash, result='HTTP/1.1 404 Not Found'.
    14.  
    15. UnityEngine.ResourceManagement.InternalOp`1:ConvertResult(AsyncOperation)
    16. UnityEngine.ResourceManagement.InternalProviderOperation`1:OnComplete(AsyncOperation)
    17. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    18. (Filename: currently not available on il2cpp Line: -1)
    19.  
    20. Exception: RawDataProvider unable to load from url file:///var/mobile/Containers/Data/Application/0E37BD21-5676-4B0A-90C3-C06907145989/Documents/com.unity.addressables/catalog_2018.11.16.08.06.37.hash, result='HTTP/1.1 404 Not Found'.
    21.  
    22. UnityEngine.ResourceManagement.GroupOperation`1:OnOperationCompleted(IAsyncOperation`1)
    23. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    24. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    25. (Filename: currently not available on il2cpp Line: -1)
    26.  
    27. Exception: RawDataProvider unable to load from url http://localhost/iOS/catalog_2018.11.16.08.06.37.hash, result='Unknown Error'.
    28.  
    29. UnityEngine.ResourceManagement.InternalOp`1:ConvertResult(AsyncOperation)
    30. UnityEngine.ResourceManagement.InternalProviderOperation`1:OnComplete(AsyncOperation)
    31. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    32. (Filename: currently not available on il2cpp Line: -1)
    33.  
    34. Exception: RawDataProvider unable to load from url http://localhost/iOS/catalog_2018.11.16.08.06.37.hash, result='Unknown Error'.
    35.  
    36. UnityEngine.ResourceManagement.GroupOperation`1:OnOperationCompleted(IAsyncOperation`1)
    37. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    38. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    39. (Filename: currently not available on il2cpp Line: -1)
    40.  
    41. Exception: RawDataProvider unable to load from url file:///var/mobile/Containers/Data/Application/0E37BD21-5676-4B0A-90C3-C06907145989/Documents/com.unity.addressables/catalog_2018.11.16.08.06.37.json, result='HTTP/1.1 404 Not Found'.
    42.  
    43. UnityEngine.ResourceManagement.InternalOp`1:ConvertResult(AsyncOperation)
    44. UnityEngine.ResourceManagement.InternalProviderOperation`1:OnComplete(AsyncOperation)
    45. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    46. (Filename: currently not available on il2cpp Line: -1)
    47.  
    48. Exception: RawDataProvider unable to load from url file:///var/mobile/Containers/Data/Application/0E37BD21-5676-4B0A-90C3-C06907145989/Documents/com.unity.addressables/catalog_2018.11.16.08.06.37.hash, result='HTTP/1.1 404 Not Found'.
    49.  
    50. UnityEngine.ResourceManagement.InternalOp`1:ConvertResult(AsyncOperation)
    51. UnityEngine.ResourceManagement.InternalProviderOperation`1:OnComplete(AsyncOperation)
    52. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    53. (Filename: currently not available on il2cpp Line: -1)
    54.  
    55. Exception: RawDataProvider unable to load from url file:///var/mobile/Containers/Data/Application/0E37BD21-5676-4B0A-90C3-C06907145989/Documents/com.unity.addressables/catalog_2018.11.16.08.06.37.hash, result='HTTP/1.1 404 Not Found'.
    56.  
    57. UnityEngine.ResourceManagement.GroupOperation`1:OnOperationCompleted(IAsyncOperation`1)
    58. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    59. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    60. (Filename: currently not available on il2cpp Line: -1)
    61.  
    62. 2018-11-16 16:11:12.596096+0800 treasurehunter[28915:1421127] You are using download over http. Currently Unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
    63. 2018-11-16 16:11:12.597503+0800 treasurehunter[28915:1421137] Cannot start load of Task <43639C07-5954-499C-9C65-81E7878330AA>.<0> since it does not conform to ATS policy
    64. 2018-11-16 16:11:12.597607+0800 treasurehunter[28915:1421098] NSURLConnection finished with error - code -1022
    65. Error:Unknown Error
    66. <RequestServer>d__7:MoveNext()
    67. UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    68. (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    69.  
    70. 2018-11-16 16:11:13.767864+0800 treasurehunter[28915:1421137] [BoringSSL] nw_protocol_boringssl_error(1584) [0x11d502650] Lower protocol stack error: 61
    71. 2018-11-16 16:11:13.768620+0800 treasurehunter[28915:1421137] TIC TCP Conn Failed [2:0x2816d3f00]: 1:61 Err(61)
    72. 2018-11-16 16:11:13.769571+0800 treasurehunter[28915:1421137] Task <41164785-9802-42A1-AA88-C95FEB961AB0>.<0> HTTP load failed (error code: -1004 [1:61])
    73. 2018-11-16 16:11:13.769762+0800 treasurehunter[28915:1421097] NSURLConnection finished with error - code -1004
    74. Exception: RawDataProvider unable to load from url https://192.168.88.57:63817/catalog_2018.11.16.08.06.37.hash, result='Cannot connect to destination host'.
    75.  
    76. UnityEngine.ResourceManagement.InternalOp`1:ConvertResult(AsyncOperation)
    77. UnityEngine.ResourceManagement.InternalProviderOperation`1:OnComplete(AsyncOperation)
    78. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    79. (Filename: currently not available on il2cpp Line: -1)
    80.  
    81. Exception: RawDataProvider unable to load from url https://192.168.88.57:63817/catalog_2018.11.16.08.06.37.hash, result='Cannot connect to destination host'.
    82.  
    83. UnityEngine.ResourceManagement.GroupOperation`1:OnOperationCompleted(IAsyncOperation`1)
    84. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    85. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    86. (Filename: currently not available on il2cpp Line: -1)
    87.  
    88. Exception: RawDataProvider unable to load from url file:///var/mobile/Containers/Data/Application/0E37BD21-5676-4B0A-90C3-C06907145989/Documents/com.unity.addressables/catalog_2018.11.16.08.06.37.json, result='HTTP/1.1 404 Not Found'.
    89.  
    90. UnityEngine.ResourceManagement.InternalOp`1:ConvertResult(AsyncOperation)
    91. UnityEngine.ResourceManagement.InternalProviderOperation`1:OnComplete(AsyncOperation)
    92. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    93. (Filename: currently not available on il2cpp Line: -1)
    94.  
    95. Addressables - initialization failed.
    96. UnityEngine.AddressableAssets.<>c__DisplayClass3_0:<LoadContentCatalog>b__0(IAsyncOperation`1)
    97. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    98. UnityEngine.AddressableAssets.InternalOp`1:OnCatalogLoaded(IAsyncOperation`1)
    99. UnityEngine.ResourceManagement.AsyncOperationBase`1:InvokeCompletionEvent()
    100. UnityEngine.AsyncOperation:InvokeCompletionEvent()
    101. (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    102.  
     
  2. rachelgarza

    rachelgarza

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    28
    Hi!

    I'm going to have a look at this today, will follow up with some information for you soon.

    Just to help track down the problem, what version of the Addressables package are you using?
     
  3. wobes

    wobes

    Joined:
    Mar 9, 2013
    Posts:
    669
    Hello. I am having the same problem. The version is 0.4.8
     
  4. AustynPember

    AustynPember

    Joined:
    Mar 14, 2018
    Posts:
    17
    WellC : How are you setting up your ServerData and Localhost variables? Where does that stuff reside?
     
  5. wobes

    wobes

    Joined:
    Mar 9, 2013
    Posts:
    669
    It happens even with default settings.
     
  6. AustynPember

    AustynPember

    Joined:
    Mar 14, 2018
    Posts:
    17
    Oh, well - I'm trying to learn this as well - still wondering how he set those up (I can't find anywhere that shows me how to set up a connection to a CDN or anything actually remote.)
     
  7. wobes

    wobes

    Joined:
    Mar 9, 2013
    Posts:
    669
    Oh. I am sorry. You can configure the settings in the file AddressableAssetSettings. There you you will see remote configuration.

     
  8. AustynPember

    AustynPember

    Joined:
    Mar 14, 2018
    Posts:
    17
    Thanks - I do see that. I was wondering what those would be if I was trying to grab assets on an AWS CDN though. How do I define what the ServerData and remote load path are?
     
  9. wobes

    wobes

    Joined:
    Mar 9, 2013
    Posts:
    669
    I suspect it has to be a ftp link to your game folder build on the aws instance.
     
  10. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    230
    @rachelgarza any information on this problem ?
    One of our dev just get my gitlab branch from my project (which has no issue) and he gets this error too without any particluar reason (cause all is ok on my computer and versionned).
     
  11. AustynPember

    AustynPember

    Joined:
    Mar 14, 2018
    Posts:
    17
    Game folder build? It can't just be raw assets hosted on AWS? (I'm trying to remotely and dynamically pull 3D model assets.)

    Wondering why there is no documentation and no examples of this anywhere, or if I'm just not finding them...
     
  12. WellC

    WellC

    Joined:
    Mar 2, 2015
    Posts:
    48
    Sovled !
    There is no this file in Addressable read path.(*.json,*.hash,*.bundle)
    SO,We need to setup the path!
    ---
    This is my solustion(iOS):
    1).Select the addressable asset settting file,
    2).Add new profile entries field,and write to Load path:{UnityEngine.Application.persistentDataPath}/com.unity.addressables/[BuildTarget]
    upload_2018-11-28_14-11-31.png

    3).Go to addressables panel, Select the Group, Set the Build Path and Load Path for this group.
    Set BuildPath to RemoteBuildPath,Set Load Path to Custom load path filed.
    upload_2018-11-28_14-13-46.png

    ---
    My English is poor...Sorry,bro
     
    Mitjans_AmuseNetwork likes this.
  13. WellC

    WellC

    Joined:
    Mar 2, 2015
    Posts:
    48
  14. AustynPember

    AustynPember

    Joined:
    Mar 14, 2018
    Posts:
    17
  15. WellC

    WellC

    Joined:
    Mar 2, 2015
    Posts:
    48
    I think u need to upload adressable file to the Azure or AWS. It will be have an URL~ And using WebRequest Download them.
     
  16. PaulBurslem

    PaulBurslem

    Unity Technologies

    Joined:
    Oct 7, 2016
    Posts:
    47
    In order to load from a url, you need to set your build path to the local directory on your machine where you want the files copied to after the build. You can leave them there if you are running a local webserver on your machine that is pointing to that folder as its web root. You would then set up your load path to use the url (http://localhost/etc..). If you are hosting your files elsewhere (AWS, etc), you need to manually copy those files to the correct location for them to be loadable. With the recent releases of Addressables, you can use the built in hosting service to serve the assets from the editor to your players. This is also useful for deploying builds to devices without having to build and copy all of the game assets to the device each time. You can get to these settings via the Hosting button in the UI. The docs in the package include an overview of how to use the system.
     
  17. AustynPember

    AustynPember

    Joined:
    Mar 14, 2018
    Posts:
    17
    Could you expand on this please? Would I be able to run a headless unity server to package assets and push them to an Azure database - and then load them on the application from that database?
    This "serve the assets from the editor to players" thing is a bit confusing to me - I don't want to serve assets from the editor, I'd like to serve them from a database?

    Thanks!
     
  18. diego_mp

    diego_mp

    Joined:
    Jun 12, 2017
    Posts:
    23
    Hi guys, I am on version 0.4.8 and I am having troubles with loading assets.
    As long as I am in Fast or Virtual mode everything good.
    When I switch to Packed Mode, exceptions are thrown.


    Exception: RawDataProvider unable to load from url file:///Users/xxx/Library/Application Support/DefaultCompany/AddressableSys/com.unity.addressables/catalog_BuildScriptPackedMode.hash, result='Generic/unknown HTTP error'.
    UnityEngine.AsyncOperation:InvokeCompletionEvent()


    This is the default settings. I had a look at the folder and it doesn't exist.
    Is it a bug? Should the AddrSys create this folder but it's not?

    After that, I create my own folder, the system found it not no contents!
    Shouldn't the AddrSys suppose to copy the files locally? Do I have to do it manually?

    From the post of @PaulBurslem my understanding is that you don't have to copy the files, even if you're using the built-in web server (which I tried with the same result, no contents).

    Cheers!

    Diego
     
  19. dbarile

    dbarile

    Joined:
    Apr 14, 2015
    Posts:
    14
    @PaulBurslem

    I have a related question about loading from a custom server. I noticed in the Unite Addressables YouTube video that the Remote LoadPath is shown as http://[PrivateIpAddress_3]:[HostingService]. For my purposes I want to send a server URL during runtime to specify where to load an Addressable. Are those variables in brackets only able to be modified during compile time, or can they be changed during runtime? And if so... how?
     

    Attached Files: