# Problem loading xbot.glb from examples locally

**URL:** <https://discourse.threejs.org/t/problem-loading-xbot-glb-from-examples-locally/29636>\
**Category:** Questions\
**Tags:** getting-started\
**Created:** [September 6, 2021, 2:33pm UTC](https://discourse.threejs.org/t/problem-loading-xbot-glb-from-examples-locally/29636 "2021-09-06T14:33:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackInk](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@blackInk](https://discourse.threejs.org/u/blackInk)\
**Post date:** [September 6, 2021, 2:33pm UTC](https://discourse.threejs.org/t/problem-loading-xbot-glb-from-examples-locally/29636/1 "2021-09-06T14:33:50Z")

</div>

Hi,  
I just downloaded threejs-example´s models and want to load Xbot.glb locally (localhost). When doing exactly same same as in the example:

```js
const loader = new GLTFLoader();|
loader.load( 'models/gltf/Xbot.glb', function ( gltf ) { console.log( "loaded") });

```

I´m getting an error in the console and the glb-file seems not to be loading:

> index.js:1446 SyntaxError: Unexpected token \< in JSON at position 0  
> at Object.parse ()  
> at GLTFLoader.parse (GLTFLoader.js:178)  
> at Object.onLoad (GLTFLoader.js:102)  
> at XMLHttpRequest. (three.module.js:30530)

Any help is highly appreciated  
B

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [September 6, 2021, 2:41pm UTC](https://discourse.threejs.org/t/problem-loading-xbot-glb-from-examples-locally/29636/2 "2021-09-06T14:41:26Z")

</div>

This error usually indicates that your backend does not correctly serve the glTF asset. Check out:

> [@SyntaxError: Unexpected token \< in JSON at position 0](https://discourse.threejs.org/t/syntaxerror-unexpected-token-in-json-at-position-0/13810):
>
> Hi, I’am trying to load GLTF model of parrot. I downloaded the model and I imported a GLTFLoader. When I try to create a GLTFLoader it says: [image] On my server I’am using parcel.js It’s interesting that on the codesandbox it is working properly… Maybe it’s something wrong with parcel? Do you know what am I doing wrong? Thanks
