Our website worked just fine but this is the error that we have now, Websites are stuck in a loading, Please can anyone help?
The message just before the error seems to indicate a problem in your file serving, which is in turn causing the GLTF loader to fail.
Thank you for your comment! Basically everything worked fine for about 6 months, but i do have issues no even on Local server when i try to load the website from VS code. I did not touch anything, so i suggest problem need to be from librarys ?
Maybe you need an older version of babylon like in this thread discussed Babylon graphic is no longer being rendered all of a sudden - Bugs - Babylon.js (babylonjs.com)
Thank you for this!
It looks like i do have only these scripts imported -
So i think one of them is causing the issue but i don’t know how to fix it
The error mentioned is directly when we read a gltf file, it is really strange you encounter this, can you share a repro or a link to your website ?
I am afraid it could be a regression from Added ArrayBufferView to possible input types to load scene content. by SergioRZMasson · Pull Request #13946 · BabylonJS/Babylon.js · GitHub and a repro would really help fixing it quickly.
This is the link for the website, i can share you my contact as well, i’m able to pay to anyone who will help me resolve this issue quick please, We are having a gaming project and i really need those websites working
It seems that for some reason we end up in the code that handles glb binary files, when the file is a .gltf file.
Your “gltfLoader.js” file is not in sync with the main Babylon.js package: you miss the changes related to the PR in “gltfLoader.js”.
You must update this file (and probably “objLoader.js” too), to correspond to the babylon.js package you retrieve from the CDN.
Can you please advise me how to do it? Everything was fine until today, those websites were running smoothly for 6-7 months, they just stopped working today or yesterday, even when i run them on Local via VS Code, and unfortunately that developer who done these websites is no longer available,
Could you please guide me?
You could update:
to get the files from the CDN UNLESS the developer has created local versions for specific reasons (perhaps added / modified code?).
The safest thing would be to keep these files and instead use the babylon.js and babylon.gui.js files that were used when your application was deployed in production.
Have you kept a version of these files somewhere? Do you know what version of Babylon you had at the time?
Those websites are simply made, i don’t think there was any modification in the code regarding scripts.
Can you please give me a contact on you? I will send you those files
The code haven’t been touch for 7 months, everything was fine until today
Since you don’t seem to have any familiarity with code it would probably be useful to use Service offers and requests to hire someone who can exclusively look at your product.
As a quick test, you can try to replace:
You are an absolute star!!! Love you !
Thank you very much it looks like it is working now!
Just a general note. Relying on the CDN for Babylon files in a production environment is probably not a good idea. The files will be updated without notification. It would be safer to host your own copies of Babylon files on your server.
Roger that! Thank you very much for your help