Dropbox Issue?

0 favourites
  • 3 posts
  • Hello, until recently, i've been having these errors in my console log when trying to load my game:

    1. Uncaught Error: SecurityError: DOM Exception 18

    2. Application Cache Error event: Resource fetch failed (-1) *link to image*

    It seems to work on a separate server, but I want to be able to work through dropbox while i'm updating my game as it's easier to upload etc. Sometimes it just goes to a black screen after it's finished loading from runtime, and sometimes it gets to past one layout, and freezes. It doesn't always crash on the same cache event.

    Any idea how to fix this?

    Thank you, Rogalog.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You're not the only one getting this error. I think Dropbox must have made some changes recently.

    I've been looking into it and I believe the error comes from trying to load WebGL textures from another domain which isn't allowed. The dropbox files are actually stored on dropboxusercontent.com. If the files are cached then it works okay but if you try to load a texture before the image has cached (I'm guessing) it loads the image direct from dropboxusercontent.com and gives the security error.

    The easy solution is to change your url from dl.dropbox.com to https://dl.dropboxusercontent.com.

    gives error:

    https://dl.dropbox.com/u/8367729/construct/demo/Space%20Blaster_r119/index.html

    works:

    https://dl.dropboxusercontent.com/u/8367729/construct/demo/Space%20Blaster_r119/index.html

  • Thank you for the reply.

    I believe it would work, however, I am using the QueryString plugin to call json files from another folder within dropbox for testing purposes.

    However, the json files can't be called if I used https://, however, the game refuses to work if I don't use https://. Any idea why that isn't working?

    Thanks a lot, Rogalog.

    Edit: false alarm. Sorry, I didn't change my json file addresses to the dropboxusercontent or my image URL's in the json file. Thank you for this post, fixed everything!

    Much appreciated!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)