Smartthings: SmartThings could not validate the webhook URL. Please ensure the webhook URL is reachable from the internet and try again

Hi,

I am trying to setup smartthings. I had it already installed for many years with no problems but recently it didn’t seem to work anymore so I tried reinstalling it. I am now getting this error after entering a newly created Personal Access Token:

SmartThings could not validate the webhook URL. Please ensure the webhook URL is reachable from the internet and try again.

I’ve already checked other posts but haven’t found a working solution.

Here’s the log:

Logger: homeassistant.components.smartthings.config_flow
Source: components/smartthings/smartapp.py:147
Integration: SmartThings (documentation, issues)
First occurred: 09:39:11 (3 occurrences)
Last logged: 13:42:27

API error setting up the SmartApp: {'requestId': 'F38DE839-BF69-42EE-AF30-9FD5E29FF495', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetTimeoutError', 'target': 'https://www.emmettflaherty.duckdns.org:8123/api/webhook/07bedda7514a188aebcca9e74856386bad888674f9ad516f8a11adcbbbda4348', 'message': 'Upstream target timed out', 'details': []}]}}
API error setting up the SmartApp: {'requestId': '7EE9CE31-D93E-4405-8F78-235A188F952C', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetTimeoutError', 'target': 'https://www.emmettflaherty.duckdns.org:8123/api/webhook/07bedda7514a188aebcca9e74856386bad888674f9ad516f8a11adcbbbda4348', 'message': 'Upstream target timed out', 'details': []}]}}
API error setting up the SmartApp: {'requestId': 'CB078EBC-4F65-4873-9277-A4290EE9296F', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetTimeoutError', 'target': 'https://www.emmettflaherty.duckdns.org:8123/api/webhook/07bedda7514a188aebcca9e74856386bad888674f9ad516f8a11adcbbbda4348', 'message': 'Upstream target timed out', 'details': []}]}}
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/smartthings/config_flow.py", line 124, in async_step_pat
    app, client = await create_app(self.hass, self.api)
  File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 147, in create_app
    app, client = await api.create_app(app)
  File "/usr/local/lib/python3.10/site-packages/pysmartthings/smartthings.py", line 110, in create_app
    entity = await self._service.create_app(app.to_data())
  File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 171, in create_app
    return await self.post(API_APPS, data)
  File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 395, in post
    return await self.request("post", self._api_base + resource, data=data)
  File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 368, in request
    raise APIResponseError(
pysmartthings.errors.APIResponseError: Unprocessable Entity (422): {"requestId": "F38DE839-BF69-42EE-AF30-9FD5E29FF495", "error": {"code": "ConstraintViolationError", "message": "The request is malformed.", "details": [{"code": "TargetTimeoutError", "target": "https://www.emmettflaherty.duckdns.org:8123/api/webhook/07bedda7514a188aebcca9e74856386bad888674f9ad516f8a11adcbbbda4348", "message": "Upstream target timed out", "details": []}]}}

ok, got it working by rolling back to a previous version of HA and updating again.