Unknown host

Hello Everybody,
Im trying to login a user created with my mikrotik api. Using the command above, im getting an error unknown host. Im working locally, is that error related with it?


channel1.write(“/ip/hotspot/active/login”, {
ip: “127.0.0.1”,
user: “x”,
password: “x”,
})
Error result { type: ‘trap’,
[0] tag: ‘1540972853534’,
[0] data:
[0] [ { field: ‘category’, value: ‘4’ },
[0] { field: ‘message’, value: ‘unknown host IP 127.0.0.1’ } ],
[0] cmd:
[0] { id: 1,
[0] command: ‘/ip/hotspot/active/login’,
[0] args: { ip: ‘127.0.0.1’, user: ‘x’, password: ‘x’ } } }
Thanks you your help.