# How to import glb file using babylon null engine on node server

**URL:** <https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694>\
**Category:** Questions\
**Tags:** documentation, tutorial\
**Created:** [February 16, 2022, 6:43am UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694 "2022-02-16T06:43:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![taehoChoi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/taehochoi/32/20169_2.png) [@taehoChoi](https://forum.babylonjs.com/u/taehoChoi)\
**Post date:** [February 16, 2022, 6:43am UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/1 "2022-02-16T06:43:48Z")

</div>

hello guys I am trying to run Babylon null engine on nodejs server.  
I want to load the glb file from the server, but I keep getting a NetworkError error.  
It was confirmed that the gltf file was imported normally. How can I import glb files from the server?

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [February 16, 2022, 8:51am UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/2 "2022-02-16T08:51:52Z")

</div>

Hey!  
Can you make a screenshot of the error?

Can you access the glb by putting it’s URL in the browser? It should start to download the glb if the URL is correct and your server is working correctly.

---

<div class="post-metadata">

**Author:** ![taehoChoi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/taehochoi/32/20169_2.png) [@taehoChoi](https://forum.babylonjs.com/u/taehoChoi)\
**Post date:** [February 16, 2022, 9:19am UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/3 "2022-02-16T09:19:24Z")

</div>

oh sorry  
I have confirmed that it is normally recorded on the console.  
Thanks for your point.  
I have one more question…  
The reason I adopted the nodejs null engine is to reduce the memory load that occurs when loading glb files from the client. Is there a way to respond to the client by putting the object in a variable after importing the glb file?

---

<div class="post-metadata">

**Author:** ![taehoChoi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/taehochoi/32/20169_2.png) [@taehoChoi](https://forum.babylonjs.com/u/taehoChoi)\
**Post date:** [February 16, 2022, 9:23am UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/4 "2022-02-16T09:23:22Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/8/086b4709c82c18109efcfd4c0943bb995fc2172f.png)

I put the result of parsing the glb file in a variable called map, and when I connected as root, I sent the result key with the value called map, but an error is occurring

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/6/666690a0dd4f1aefc95b855641908271f0026f8b.png)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [February 16, 2022, 9:47am UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/5 "2022-02-16T09:47:18Z")

</div>

You have to use `serialize()` before you `JSON.stringify` them. `serialize()` will take care of removing the circular structure.

Have a look at this:

> **[Save Your Scene or Meshes | Babylon.js Documentation](https://doc.babylonjs.com/extensions/Exporters/Save_Babylon)**
>
> Using the scene serializer

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 21, 2022, 7:57pm UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/6 "2022-02-21T19:57:10Z")

</div>

> [@taehoChoi](#):
>
> The reason I adopted the nodejs null engine is to reduce the memory load that occurs when loading glb files from the client

I am not sure you would save anything by splitting the process this way. @bghgary might be able to provide guidance about the most straightforward setup in gltf to match with babylon files.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [February 22, 2022, 9:06pm UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/7 "2022-02-22T21:06:18Z")

</div>

Sorry, I don’t understand the question or what you are trying to do. Can you explain more or set up a repro?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 24, 2022, 12:52pm UTC](https://forum.babylonjs.com/t/how-to-import-glb-file-using-babylon-null-engine-on-node-server/27694/8 "2022-03-24T12:52:57Z")

</div>

Hello @taehoChoi just checking in do you still have issues?
