2017.1.0f3 Uncaught SyntaxError: Unexpected token <

Hi

I am trying to run a simple webGL app. On the local machines it runs fine but when I drop it on our server I get an error message:-

Uncaught SyntaxError: Unexpected token <

I have looked in the Javascript console and this is what I get:-

Invoking error handler due to
TypeError: UnityLoader[r] is not a function. (In ‘UnityLoaderr’, ‘UnityLoader[r]’ is undefined)

Does anyone have any idea how I can fix this please? I have scanned the forums and don’t seem to be able to find a solution.

Here is a link to the page:

http://tmpfe5da5e1.daily-winhost.co.uk/Pinnacle/index.html

Thanks a lot.

Neil

I am still trying to get this sorted. My client is going crazy.

I have just built another scene with a cube, a camera and a light. No other assets and I am still getting the same error.

Any ideas would be really appreciated.

If not is there any way I can pay for Unity support?

I have to get this working or I will loose a lot of work.

Thanks

Neil

I think the (gzip) compression settings on your IIS server are not correct. The issue is I get 404’s (file missing) on your webgl binary, but I noticed the Pinnacle.json file is downloaded fine (this tells me the files probably exist, but your server is not serving them). Assuming you didn’t forget to upload the binary to your server, these types of issues are usually because the server’s compression settings are not set up correctly.

Hi, thanks for the reply. I actually turn the compression off as I read in another thread it could be causing the problem. I will check that all the files are included but I am 99% sure they are. I have a call out to my ISP to see if they can solve this.

Thanks again.

Neil

If you fill out this form: https://unity3d.com/contact someone will be in touch with you, however, It sounds like this is just a matter of configuring your server. Here is the manual page for that.

Hi Marco

Thanks for the message. I think you are right, it is to with our server. I put it up on dropbox in the public folder and it works great. I will wait to see what my ISP says.

Thanks a lot.

Neil