REST URL Commands stopped working since .101.2 update

I am getting this error in the logs for a few rest commands, that have worked reliably in the past. I confirmed the URL worked when entered in a browser, so I have ruled that out. I assume something changed with formatting, but I couldn’t find anything related in the recent changelogs.

Error: 2019-11-05 15:56:07 ERROR (MainThread) [homeassistant.components.rest_command] Client error http://blueiris.local.domain:999/admin?camera=fdoor&trigger&user=hassio&pw=*****

Config, for which nothing has changed WRT the rest config since I first started using it:

#rest
rest_command:
  frontdoor_trigger:
    url: 'http://blueiris.local.domain:999/admin?camera=fdoor&trigger&user=hassio&pw=******'

Any insights would be greatly appreciated!

Thanks

I think I figured it out. DNS issue. Sending the commands via IP works.

Now to troubleshoot THAT issue…

Did you ever find a resolution to this? (This thread still comes up first in Google when looking for Rest Command issues in Home Assistant.)

I have the exact same behavior, where IP address works but a hostname doesn’t. The machine running Home Assistant is able to ping the target device by hostname, so it’s definitely able to DNS resolve the name correctly, but HA’s Rest Command itself doesn’t seem to be able to.

1 Like

Thanks for pointing that S3rgeus ! I have the same problem.
I just filed an issue https://github.com/home-assistant/core/issues/57855
feel free to add details if you have in here

Hi! Any progress on this one?

I used to run HA in a proxmox container, and REST commands worked as expected. Then I switched to a supervised install and I rest commands would complain about “client error”. Same problem at a different supervised installation at a odroid c2

my issues has been closed without a fix. Please help on it and reopen it :slight_smile:

In my case I now think its related to the network configuration - the packaged version of home-assistant uses an internal network which can’t resolve domains in my local network. I’m switching back to running home-assistant in a lxc container (proxmox). Works good enough for me.

1 Like