Question
· Feb 16

connect iris community version to node js

Hi 

I am trying to connect to node js on iris community version  . Node js is properly installed .

I am executing the demo hello  world from github .

 

these are the parameters :-

    var ip = "localhost"

    var port = 51773

    var namespace = "USER"

    var username = "SuperUser"

    var password = "SYS"

 

when executing >node demo.js i get a connection error .

Error: connection to server denied [ERROR_FAILED_TO_CONNECT]
    at main (C:\Users\AF\demo.js:18:35)
    at Object.<anonymous> (C:\Users\AF\demo.js:30:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

Node.js v20.11.0

 

Thanks 

Rafi Farchi

Product version: IRIS 2023.3
Discussion (5)3
Log in or sign up to continue