Domio gets notifications, device history, live widgets and more

siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Domio gets notifications, device history, live widgets and more

Post by siclark »

whmoorejr wrote: Tue Jun 16, 2026 4:49 pm
siclark wrote: Tue Jun 16, 2026 2:27 pm Fixes in TestFlight. Let me know.
Indigo Server "Not registered"
"Registered witht eh relay, but couldn't save this device to your Indigo server (server erro 500). It will retry automatically while connected to indigo."

This pops up in the indigo log as soon as I go to the Notifications menu on the app....

Code: Select all

   Web Server Warning              HTTP API v2 GET call received for indigo.variables from 98.197.17.15
   Web Server Error                internal server error for request /v2/api/indigo.variables from 98.197.17.15
Ok.. issue was it was trying to call whole variable message over http to find the specific variable holding your key, and it was erroring on one of your variables which worked on my machine (but clearly not the best design). I have changed it to now check the WS delivered variables to validate and write the correct token. Update in TestFlight.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Domio gets notifications, device history, live widgets and more

Post by jay (support) »

Hey Simon, can you drop me an email with the details/example? We probably need to catch that exception with a better error.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
durosity
Posts: 4810
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Domio gets notifications, device history, live widgets and more

Post by durosity »

jay (support) wrote: Wed Jun 17, 2026 6:11 am Hey Simon, can you drop me an email with the details/example? We probably need to catch that exception with a better error.
Ideally it'd be nice if there was an option to hide such requests/errors from authenticated sources, if possible.
Computer says no.
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Domio gets notifications, device history, live widgets and more

Post by siclark »

jay (support) wrote: Wed Jun 17, 2026 6:11 am Hey Simon, can you drop me an email with the details/example? We probably need to catch that exception with a better error.
This is something whmoorejr needs to run, it is a 500 error on his call.

I think this is returning him a 500

Code: Select all

 curl -i -H "Authorization: Bearer YOUR_API_KEY"  https://YOUR_REFLECTOR_ID.indigodomo.net/v2/api/indigo.variables
Claude suggests below in the scripting shell might identify the problem variable. but the above returns 200 for me so all good.

Code: Select all

import urllib.request, urllib.error

BASE = "http://127.0.0.1:8176/v2/api"
KEY = ""  # set to your API key if localhost rejects unauthenticated calls


def get(url):
    req = urllib.request.Request(url)
    if KEY:
        req.add_header("Authorization", "Bearer " + KEY)
    return urllib.request.urlopen(req, timeout=10).getcode()


bad = []
for v in indigo.variables:
    url = "{0}/indigo.variables/{1}".format(BASE, v.id)
    try:
        code = get(url)
        if code != 200:
            bad.append((v.id, v.name, code))
            indigo.server.log("BAD {0}: id={1} name={2!r}".format(code, v.id, v.name), isError=True)
    except urllib.error.HTTPError as e:
        bad.append((v.id, v.name, e.code))
        indigo.server.log("BAD {0}: id={1} name={2!r}".format(e.code, v.id, v.name), isError=True)
    except Exception as e:
        indigo.server.log("ERR id={0} name={1!r}: {2}".format(v.id, v.name, e), isError=True)

indigo.server.log("variable scan complete -- {0} problem variable(s)".format(len(bad)))
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Domio gets notifications, device history, live widgets and more

Post by jay (support) »

@durosity, hiding errors is never the right choice since failures become invisible and bugging issues becomes almost impossible. However, making errors more clear and useful to solve the issue is.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
whmoorejr
Posts: 844
Joined: Tue Jan 15, 2013 11:23 am
Location: Houston, TX

Re: Domio gets notifications, device history, live widgets and more

Post by whmoorejr »

Updated to 2.3(18). Slightly different error....

Note: When experimenting with automations/shortcuts, dom.io couldn't generate / pull variables there either. From the app, browse menu, I can see all my indigo variables and their folders.

Code: Select all

   Domio Debug                     Pages manifest: 1 page(s)
   Web Server Warning              HTTP API v2 GET call received for indigo.devices from 98.197.17.15
   Domio Debug                     Pages manifest: 1 page(s)
   Web Server Warning              HTTP API v2 GET call received for indigo.variables from 98.197.17.15
   Web Server Error                internal server error for request /v2/api/indigo.variables from 98.197.17.15
   Web Server Warning              HTTP API v2 GET call received for indigo.variables from 98.197.17.15
   Web Server Error                internal server error for request /v2/api/indigo.variables from 98.197.17.15
   Web Server Error                message handler failed: plugin with id 'com.simons-plugins.logs-over-reflector' isn't installed
   Web Server Warning              HTTP 501 error for request /message/com.simons-plugins.logs-over-reflector/log from 98.197.17.15
   Web Server Error                message handler failed: plugin with id 'com.simons-plugins.logs-over-reflector' isn't installed
   Web Server Warning              HTTP 501 error for request /message/com.simons-plugins.logs-over-reflector/dates from 98.197.17.15
   Web Server Error                message handler failed: plugin with id 'com.simons-plugins.logs-over-reflector' isn't installed
   Web Server Warning              HTTP 501 error for request /message/com.simons-plugins.logs-over-reflector/sources from 98.197.17.15
Did I miss installing something?
Last edited by whmoorejr on Wed Jun 17, 2026 9:52 am, edited 1 time in total.
Bill
My Plugin: My People
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Domio gets notifications, device history, live widgets and more

Post by siclark »

It uses different methods to access variables. I think one is failing. Can you run above commands to check?
User avatar
whmoorejr
Posts: 844
Joined: Tue Jan 15, 2013 11:23 am
Location: Houston, TX

Re: Domio gets notifications, device history, live widgets and more

Post by whmoorejr »

siclark wrote: Wed Jun 17, 2026 9:52 am Can you run above commands to check?
first one...

Code: Select all

Last login: Tue Jun  9 22:06:02 on console
williammoore@Mac ~ % curl -i -H "Authorization: Bearer 520........0db3"  https://whmoorejr.indigodomo.net/v2/api/indigo.variables
HTTP/1.1 500 Internal Server Error
Date: Wed, 17 Jun 2026 15:58:40 GMT
Server: Reflector Server
content-length: 141
content-type: text/plain; charset=utf-8
Connection: close

⚠️ 500 — Internal Server Error
==============================
The application encountered an unexpected error and could not continue.
For the second one... where do I put that... terminal? In an action to execute a script? (I'm not a programmer... I just mash the keys until I get a result I like)
Bill
My Plugin: My People
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Domio gets notifications, device history, live widgets and more

Post by siclark »

Bottom of plugin menu is open scripting prompt. Paste it there.
User avatar
whmoorejr
Posts: 844
Joined: Tue Jan 15, 2013 11:23 am
Location: Houston, TX

Re: Domio gets notifications, device history, live widgets and more

Post by whmoorejr »

siclark wrote: Wed Jun 17, 2026 10:07 am Bottom of plugin menu is open scripting prompt. Paste it there.
The rabbit hole begins.... what does this mean?

Code: Select all

Last login: Sun May 10 14:20:00 on ttys000
/Applications/Indigo\ 2025.2.app/Contents/Resources/PlugIns/launch_indigopluginhost.command ; exit;

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Indigo-Server-2:~ williammoore$ /Applications/Indigo\ 2025.2.app/Contents/Resources/PlugIns/launch_indigopluginhost.command ; exit;
/Applications/Indigo 2025.2.app/Contents/Resources/PlugIns/launch_indigopluginhost.command: line 4: /opt/local/bin/clear: Bad CPU type in executable
/Applications/Indigo 2025.2.app/Contents/Resources/PlugIns/launch_indigopluginhost.command: line 5: /usr/local/indigo/indigo-host: Permission denied
logout

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...7 completed.

[Process completed]
Bill
My Plugin: My People
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Domio gets notifications, device history, live widgets and more

Post by jay (support) »

Looks like your install is somewhat broken. Rerun the Indigo 2025.2 installer, start Indigo back up, then open a terminal window and paste in:

Code: Select all

/usr/local/bin/indigo-host
and if it shows this:

Code: Select all

Python 3.13.9 (v3.13.9:8183fa5e3f7, Oct 14 2025, 10:27:13) [Clang 16.0.0 (clang-1600.0.26.6)]
Connected to Indigo Server v2025.2.0, api v3.8 (localhost:1176)
then run the script again. If not, paste in the contents of the terminal window starting with the command.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Domio gets notifications, device history, live widgets and more

Post by siclark »

Sitting here glad it’s not my app
User avatar
whmoorejr
Posts: 844
Joined: Tue Jan 15, 2013 11:23 am
Location: Houston, TX

Re: Domio gets notifications, device history, live widgets and more

Post by whmoorejr »

jay (support) wrote: Wed Jun 17, 2026 10:25 am Looks like your install is somewhat broken. Rerun the Indigo 2025.2 installer, start Indigo back up, then open a terminal window and paste in:

Code: Select all

/usr/local/bin/indigo-host

Code: Select all

Indigo-Server-2:~ williammoore$ /usr/local/bin/indigo-host
-bash: /usr/local/bin/indigo-host: Permission denied
Indigo-Server-2:~ williammoore$ 
siclark wrote: Wed Jun 17, 2026 10:26 am Sitting here glad it’s not my app Image
Thanks... It's just my computer that jacked up. :roll:
Bill
My Plugin: My People
User avatar
whmoorejr
Posts: 844
Joined: Tue Jan 15, 2013 11:23 am
Location: Houston, TX

Re: Domio gets notifications, device history, live widgets and more

Post by whmoorejr »

whmoorejr wrote: Wed Jun 17, 2026 10:39 am
jay (support) wrote: Wed Jun 17, 2026 10:25 am Looks like your install is somewhat broken. Rerun the Indigo 2025.2 installer, start Indigo back up, then open a terminal window and paste in:

Code: Select all

/usr/local/bin/indigo-host

Code: Select all

Indigo-Server-2:~ williammoore$ /usr/local/bin/indigo-host
-bash: /usr/local/bin/indigo-host: Permission denied
Indigo-Server-2:~ williammoore$ 
siclark wrote: Wed Jun 17, 2026 10:26 am Sitting here glad it’s not my app Image
Thanks... It's just my computer that jacked up. :roll:
Maybe this means nothing....
looking at the terminal results:

Looked at usr/local/ … “Indigo” folder I don’t have permission to view. Should I change permissions to everyone read/write?

Then I looked at usr/bin/ “indigo-host” which is an alias. Tried to find the original…. “The allies “indigo-host” cant’t be opened because the original item can’t be found.”

I can “Ok”, “Fix Alias” or “Delete Alias”…. I did nothing… didn’t want to accidentally mess up anything else.
Bill
My Plugin: My People
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Domio gets notifications, device history, live widgets and more

Post by jay (support) »

If the user account you're using has admin permissions, it should be fine. You user should be in the admin group. If not, then that's the problem. Here's what the perms should look like:

Code: Select all

ProductionMac:local admin$ ls -la /usr/local/indigo
total 72
drwxrwx---   7 root  admin   224 Apr 29 13:58 .
drwxr-xr-x  11 root  wheel   352 Jan 16 14:41 ..
-rwxrwx---   1 root  admin  4573 Apr 29 13:48 indigo-clean-and-zip-plugin
-rwxrwx---   1 root  admin  7518 Apr 29 13:48 indigo-host
-rwxrwx---   1 root  admin  5445 Apr 29 13:48 indigo-restart-plugin
-rwxrwx---   1 root  admin  2484 Apr 29 13:48 indigo-start
-rwxrwx---   1 root  admin  5332 Apr 29 13:48 indigo-stop
If that's what it looks like, then your user isn't marked as an admin user. And if that account is also the one that Indigo is installed with, then I'm surprised anything is working as you have to install and run Indigo from an admin account.

Code: Select all

id
in the terminal will tell you.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Domio”