I have scourged google trying to resolve the login error for the rest notification I receive.
Logger: homeassistant.components.http.ban
Source: components/http/ban.py:136
integration: HTTP (documentation, issues)
First occurred: 14:45:58 (1 occurrences)
Last logged: 14:45:58
Login attempt or request with invalid authentication from HomeAssistant.wp.shawcable.net (192.168.1.116). Requested URL: ‘/api/services/shell_command/rest_notify’. (HomeAssistant/2024.11.3 httpx/0.27.2 Python/3.12)
Logger: homeassistant.components.rest.notify
Source: /usr/src/homeassistant/homeassistant/components/rest/notify.py:223
integration: RESTful (documentation, issues)
First occurred: 14:45:58 (1 occurrences)
Last logged: 14:45:58
Client error. Response 401: Unauthorized:
NoneType: None
The shell command works as it should. Home Assistant has the addon NGinx HA Proxy which uses the default config and is working properly. The rest notify is configured as:
- name: rest_notify
platform: rest
resource: http://192.168.1.116:8123/api/services/shell_command/rest_notify
method: POST_JSON
header:
authorization: “Bearer MY_TOKEN”
content-type: application/json
message_param_name: message
HA config has for HTTP:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 127.0.0.1
- ::1
The HA is a VM on Proxmox. Any suggestions/hints on how to resolve this is appreciated.