#SignatureVerificationError when tunneled

1 messages · Page 1 of 1 (latest)

gusty viper
#

Making a thread so I can share this:

Logger: homeassistant.components.webhook
Source: components/smartthings/smartapp.py:509
Integration: Webhook (documentation, issues)
First occurred: 12:34:57 AM (7 occurrences)
Last logged: 12:37:17 AM

Error processing webhook eda48b41d80cee532c645f4972befd614f4a5510fd9e0af745ffbbd372bf2682
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 182, in async_handle_webhook
    response = await webhook["handler"](hass, webhook_id, request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 509, in smartapp_webhook
    result = await manager.handle_request(data, request.headers)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pysmartapp/smartapp.py", line 174, in handle_request
    resp = await req.process(smartapp, headers, validate_signature)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pysmartapp/request.py", line 70, in process
    raise SignatureVerificationError
pysmartapp.errors.
#

Again, things are working. I connect via my remote URL and SmartThings is happily hitting the webhook, and the requests are getting processed. Just in doing so they raise that error.

#

Caveat: I did not delete my existing SmartThings integration...I just re-ran the setup. That seemed to do the trick. I a) didn't want to delete it and have to re-integrate everything and b) am slightly worried that perhaps it would fail in setup due to this above error.

gusty viper
#

FWIW I've also used the Let's Encrypt add-on to give myself a certificate, and then setup the tunnel to access https://homeassistant.local:8123 (with noTlsVerify on in the tunnel settings since the cert is for my domain, not .local).

gusty viper
#

Ok new update: I deleted the SmartThings integration entirely (and removed the bridge from my Apple Home) and then reinstalled SmartThings from scratch (same API token but this let the "setup" actually finish its thing) and then re-added to home (gave me an opportunity to clean up device names too). And that seems to have done the trick!