ImportMesh of undefined from undefined version: undefined

Hi everyone.
I want to create feature upload model from user device. I allow user to only upload file glb to s3 and receive url of model from s3.
I use SceneLoader.ImportMeshAsync to import the model to my scene. But i received bug:
importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse


I also research and somebody told it due to mismatch version of @babylonjs/core and @babylonjs/loaders. I ensure my version of 2 packages is the same. So how to fix that. I think maybe url from my s3 is not valid. But when i paste this url to browser, it work fine and i still can download this file immediately.
This is my playgroud

Can somebody help me. Thanks for reading my questions

Seems that your file lost its extension somewhere (should be .glb, but currently there is no extension at all).

If your file has no extension, Babylon does not know which loader to use. In that case, you can pass the extension ".glb" through the 6th parameter of ImportMeshAsync.

3 Likes

thank you so much, i worked for me ^^