Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Couldn't connect to host using WWW.LoadFromCacheOrDownload in OSX editor

Discussion in 'Scripting' started by andres-gutierrez, Aug 19, 2015.

  1. andres-gutierrez

    andres-gutierrez

    Joined:
    Aug 7, 2015
    Posts:
    1
    Hello,

    We're experiencing a problem loading assets with WWW.LoadFromCacheOrDownload(Url, Hash). Randomly, it can't retrieve the asset bundle either from the remote server or local cache with the following message in the console: couldn't connect to host. If the asset is already in the local cache it stills shows this message.

    We've changed the CDN to Cloudfront (very unlikely to be down), an Amazon S3 bucket and also a local web server in the same machine where the editor runs, but it randomly shows that it can't connect to the server.

    This only happens in the OSX editor (reproduced on different OSX machines), on Windows and mobile devices everything is working fine.

    If we use a "new WWW" object to download the bundle instead of WWW.LoadFromCacheOrDownload this error is never showed up.

    Could anyone give me insights about why this can happen?
     
  2. doggan

    doggan

    Joined:
    Aug 12, 2012
    Posts:
    23
    Same issue here. We've found that restarting the Unity editor temporarily fixes the problem.
     
  3. Avatara360

    Avatara360

    Joined:
    Feb 17, 2016
    Posts:
    1
    I'm having this issue as well