# Getting Unexpected end of JSON input

**URL:** <https://discourse.threejs.org/t/getting-unexpected-end-of-json-input/8929>\
**Category:** Questions\
**Tags:** node-js, gltf-loader\
**Created:** [August 8, 2019, 10:15am UTC](https://discourse.threejs.org/t/getting-unexpected-end-of-json-input/8929 "2019-08-08T10:15:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [August 9, 2019, 1:56pm UTC](https://discourse.threejs.org/t/getting-unexpected-end-of-json-input/8929/4 "2019-08-09T13:56:43Z")

</div>

Read this topic for more information. It seems loading a `glb` makes the usage in context of `node.js` easier:

> [@Using GLTFLoader on node](https://discourse.threejs.org/t/using-gltfloader-on-node/2309):
>
> I would like to use the GLTFLoader to do some server side loading of models for the purpose of making thumbnail images. Towards this end, I have created a small node script which downloads zip files containing gltf models from S3, unzips them to a tmp directory, then attempts to load the models locally. My first attempt was to use loader.parse(myGLTF,...). This correctly reads the gltf manifest as json, but as soon as it attempts loads the first .bin file, I get an exception TypeError: Cannot r…

---

_[View the full topic](https://discourse.threejs.org/t/getting-unexpected-end-of-json-input/8929)._
