Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
2
Question by Mischa · Feb 11, 2016 at 02:29 PM · webglassetbundleserver-hosting

error: Failed to decompress data for the AssetBundle, when starting a web gl game on a hosted server

I try to load assetbundles in a Web GL build. The bundles are stored in the "StreamingAsset" path. When I test this on a local server (xampp) it works like a charm.

As soon as I upload it to a hosted server I get the error "Failed to decompress data for the AssetBundle" when trying to load the bundle.

Code for loading the bundle:

 using(WWW www = new WWW(assetPath+"/"+bundleName))
 {
     yield return www;
     if(!string.IsNullOrEmpty(www.error))
     {
         kgAGame.instance.logger.error("error while creating asset bundle from file: "+assetPath+"/"+bundleName+": "+www.error);
         yield break;
     }
     kgAGame.instance.logger.info("fetched asset bundle from file: "+assetPath+"/"+bundleName);
     _bundles.Add (bundleName,www.assetBundle);
     yield return null;
 }

This is the error I get:

alt text

File rights on the hosted server are all set to 777 for testing. Path to the bundle is also correct. I am no web developer pro, do I miss something? Or do you have any ideas what could cause this error?

assetbundle-error.png (85.3 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image diekeure · Feb 16, 2016 at 09:26 AM 0
Share

I have the same problem...

avatar image Diet-Chugg · Feb 25, 2016 at 03:54 PM 0
Share

I'm also having the same problem

1 Reply

· Add your reply
  • Sort: 
avatar image
46
Best Answer

Answer by Diet-Chugg · Feb 25, 2016 at 05:04 PM

If you are using FIlezilla to upload your asset bundles. Try inside of FIlezilla Transfer>Transfer Type>BInary. then delete your build and asset bundles and re-upload them. It worked for me.

Comment
Add comment · Show 22 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mischa · Mar 08, 2016 at 02:07 PM 0
Share

you sir, are a hero!

avatar image liqvidunity · Jun 09, 2016 at 06:20 AM 0
Share

I working on standalone application.

avatar image lmbarns · Jun 12, 2016 at 08:02 PM 0
Share

Worked for me with a problem downloading asset bundles on ios....I'd uploaded to my other host through their upload app and the asset bundles worked there but on the production server I was using filezilla and it couldn't decompress them. I was thinking it was an IIS vs Apache problem so thanks for saving me time.

avatar image petesplace · Sep 20, 2016 at 12:44 PM 0
Share

Probably saved me hours of headache. Thank you very much sir!

avatar image ensomniac · Oct 04, 2016 at 09:41 PM 0
Share

Thank you!

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

66 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does the Unity Scaling settings for a model impact the texture detail? 0 Answers

Web multiplayer on my own server? 1 Answer

Asset Bundles misMatch 0 Answers

Audio Source in WebGL Asset bundle 0 Answers

WebGL error: "Could not produce class with ID 210" 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges