"Offset is outside the bounds of the DataView" error all of a sudden

Hi!

I’ve recently cloned a website with a unity configurator in it. On the original site, the configurator loads with no issues, but after cloning it to a US based host provider (coming from a european provider), I get a “Offset is outside the bounds of the DataView” error.

Original example can be found here: https://www.mountaintop.dk/interactive-3d-configurator/?value=Amarok

The exact clone refuses to work. All references after the move are accounted for. I’m currently on my 10th hour trying to fix this, and I still have no clue as to why it does this. Does anyone have an idea why?

Apologies if this question is vaguely explained. It’s way past midnight here, and I’m exhausted. I’ll revisit in the morning.

Tried loading the page - not sure how the error is supposed to manifest, although I do not see such an error about a DataView in console. I do get a spinning model of a white Volkswagen car on the top of the page. Is there something more to it?

Btw, Unity does not use the DataView JS API (to my memory), so if there is an issue with DataView, my first hunch would be towards some other piece of code on the site. Looking at the callstack can give a closer clue.

I also had this issue, where IIS was serving a 404 error when accessing the .data file. This - I believe - was causing the Javascript error.

Fix: Go to MIME types in the website in IIS and make sure you add one for .data and assign it application/octet-stream

Good luck :slight_smile: