# "socket hang up" error on NodeJS Custom Script

**URL:** <https://community.dreamfactory.com/t/socket-hang-up-error-on-nodejs-custom-script/3896>\
**Category:** Server-Side Scripting\
**Created:** [June 16, 2017, 3:24pm UTC](https://community.dreamfactory.com/t/socket-hang-up-error-on-nodejs-custom-script/3896 "2017-06-16T15:24:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tizzyapunkt](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tizzyapunkt](https://community.dreamfactory.com/u/tizzyapunkt)\
**Post date:** [June 16, 2017, 3:24pm UTC](https://community.dreamfactory.com/t/socket-hang-up-error-on-nodejs-custom-script/3896/1 "2017-06-16T15:24:36Z")

</div>

Hi,

using the platform.api methods within a NodeJS Custom Script I get the following result:

```auto
{
    "error": {
        "message": "socket hang up",
        "code": 500
    }
}

```

I tried to use the get and post methods from the NodeJs CRUD example with both, internal and external path.

DreamFactory Version: 2.7.0, Github install method, fresh setup’ed system.

Any suggestions on that?

That’s what the log said, nothing special here:

```auto
[2017-06-16 15:19:09] local.INFO: [REQUEST] {"API Version":"2.0","Method":"GET","Service":"njstest","Resource":null} 
[2017-06-16 15:19:09] local.INFO: [RESPONSE] {"Status Code":500,"Content-Type":"application/json"} 

```

UPDATE: I found out that the NodeJS 8 version might caused that issue. NodeJs 7 works as expected.
