Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem issuing commands

Featured Replies

Posted

I'm new to Node Servers but here is what I am experiencing.

I was able to connect the harmony hub node server to eisy.

I see all of my devices/automations

when I execute a command from the "main" tab for a device, I get "TCP client request failed [ISY:401]

when I execute a command from a program, nothing seems to happen

for either scenario I see the below on the PG3 log

What have I done wrong?

 
12/29/2022, 20:57:12 [pg3] error: ISY Inbound Status: UnauthorizedError: Unauthorized
at Object.throw (/var/polyglot/node_modules/koa/lib/context.js:97:11)
at checkAuth (/var/polyglot/node_modules/@universaldevices/pg3x/lib/routes/Node Server.js:29:56)
at getNodeserver (/var/polyglot/node_modules/@universaldevices/pg3x/lib/routes/Node Server.js:39:11)
at async /var/polyglot/node_modules/@universaldevices/pg3x/lib/routes/Node Server.js:148:16
at async /var/polyglot/node_modules/@universaldevices/pg3x/lib/services/https.js:48:9

 

Solved by TSinclair

Go to solution
  • Author

Unfortunately 3.1.18 did not resolve it.  Same behavior; TCP client request failed [ISY:401] and error below on PG3 log

 
1/5/2023, 20:51:48 [pg3] error: ISY Inbound Status: UnauthorizedError: Unauthorized
at Object.throw (/var/polyglot/node_modules/koa/lib/context.js:97:11)
at checkAuth (/var/polyglot/node_modules/@universaldevices/pg3x/lib/routes/Node Server.js:29:56)
at getNodeserver (/var/polyglot/node_modules/@universaldevices/pg3x/lib/routes/Node Server.js:39:11)
at async /var/polyglot/node_modules/@universaldevices/pg3x/lib/routes/Node Server.js:148:16
at async /var/polyglot/node_modules/@universaldevices/pg3x/lib/services/https.js:48:9
  • Author
  • Solution

Success!!

With Michel's help, this was solved by deleting the NS, removing it from IoX, logging off PG3, and then reinstalling.  I had done this a couple times, but left off the step of logging out of PG3 before reinstalling.

Just for reference.  The error means that the configuration of the node server on the IoX (when you go to Node Servers -> Configure -> slot # -> <node server>) has an incorrect password.

When PG3 installs the node server on the IoX, it sets the password to an encrypted token, when the IoX sends a command to PG3/node server, PG3 checks that password to see if matches and if it doesn't, it throws that error.

Normally, this would mean that the node servers was installed on the IoX by a different PG3**.

 

** PG3 creates a unique identifier when it creates it's database for the first time.  Removing the database and restarting PG3 will create a new unique identifier and this will also cause the authentication to fail.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.