"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Cannot get content from an unfinished UnityWebRequest object

Hello! i am having this error, trying to have the app download an assetbundle from an url:  

  • InvalidOperationException: Cannot get content from an unfinished UnityWebRequest object
  • UnityEngine.Networking.DownloadHandler.GetCheckedDownloader[T] (UnityEngine.Networking.UnityWebRequest www) (at <1b339e701b4b41ba9e5bacb491247150>:0)
  • UnityEngine.Networking.DownloadHandlerAssetBundle.GetContent (UnityEngine.Networking.UnityWebRequest www) (at <9387c707b3dc43e28471eec2e11e7579>:0)
  • AssetBundleAugmenter+<DownloadAndCache>d__6.MoveNext () (at Assets/AssetBundleAugmenter.cs:37)
  • UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <4746c126b0b54f3b834845974d1a9190>:0)

I followed this documentation: https://library.vuforia.com/unity-extension/package-augmentations-unity-assetbundles The image target is stored in a vuforia database, it worked well when using it with a normally built .apk with the 3D model included in the installer. The URL of the bundle is this: https://cavetrolltest01.000webhostapp.com/AssetBundles/nickhatchery/

Hey there,

 

The error message you're seeing suggests that you're trying to access the content of a UnityWebRequest object before it has finished downloading. One potential solution is to ensure that the UnityWebRequest has completed before trying to access its content.

Hey! thanks for the response. However, i should fill with a value , like 1, 2, 3? these represent seconds? miliseconds, or some sort of order?