delian / node-unifiapi

UniFi API ported to Node.JS
GNU General Public License v3.0
49 stars 19 forks source link

Running on an Issue with basic example #31

Open ghost opened 2 years ago

ghost commented 2 years ago

I'm running the default example trying to connect to my unifi controller. Why am I getting this error? Node version is v14.16.1, node-unifiapi: "^0.0.54"

UnifiAPI Debug is enabled +0ms UnifiRequest UnifiAPI-request Initialized with options { username: 'mdandrea87', password: '(mypassword)', baseUrl: 'https://127.0.0.1:8443', debug: true, debugNet: false, gzip: true, site: 'default' } +2ms UnifiAPI UnifiAPI Initialized with options { baseUrl: 'https://127.0.0.1:8443', username: 'mdandrea87', password: '(mypassword)', debug: true } +3ms UnifiRequest Trying to log in with username: mdandrea87 and password: (mypassword) +1ms UnifiRequest Successfuly logged in { rc: 'ok' } +1s Error { meta: { rc: 'error', msg: 'api.err.NotFound' }, data: [] }