What is "error in unsuccess callback", how can I solve this error

Hi
I have convert an obj to .babylon. and I want to load it local on my project, how can I get rid of the below error?

my code is exactly like this PG but for the url has the local url: https://playground.babylonjs.com/#JA1ND3#84

That means that your onSuccess callback throws an exception for some reason. Hard to say without seeing the model and the exact code.

The onSuccess function is the 4th parameter you provide to the Append function. you can try wrapping the entire function in a try-catch to see what exactly went wrong there

1 Like

Check if it’s due to CORS policy. Access to local file system is not allowed by CORS.

3 Likes

@Mercurio @RaananW Thanks a lot

1 Like