-
-
Notifications
You must be signed in to change notification settings - Fork 28.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmartThings could not validate the webhook URL #98343
Comments
Hey there @andrewsayre, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) smartthings documentation |
Do i need to provide more info? what info is needed? |
I'm experiencing the same issue exactly as chrwei described. The only difference is that I'm using DNS and SSL through Cloudflare. This way, I can establish a smooth connection both on mobile and in browsers. Moreover, my integrations with Amazon Alexa work flawlessly with this SSL. My operating system is installed on RPi 4 8GB, and the system details are as follows: Home Assistant 2023.8.4
|
I solved the problem. As a solution, I uninstalled and reinstalled cloudflare and connected with the automatic auth method, then the addition was successful. |
I have exact the same issue with Cloudflare. Reinstall didn't help. `Logger: homeassistant.components.smartthings.config_flow API error setting up the SmartApp: {'requestId': '725981169526911936', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetTimeoutError', 'target': 'https://XXXXXX/api/webhook/1da392fff310eccdad2a2ad956a627bfc63ff77152448c1a4db893abd4c6181d', 'message': 'Upstream target timed out', 'details': []}]}} Curl test is working fine ("pingData": { "challenge": "00000000-0000-0000-0000-000000000000"}}') |
Home Assistant 2023.9.2 I have also been trying to link SmartThinks for days but am having the exact same problem. What I do notice, no idea if this affects link creation, is that when you click on the SmartThinks API url from the token page, you get the error message: 503 Service Temporarily Unavailable This link points to this url: https://smartthings.developer.samsung.com/develop/api-ref/st-api.html HA log:
The URL seems to work fine from external connections. Postman log:
|
|
Hello, You can resolve the issue by following the steps in the video linked below to install Cloudflare. Before installing it, you may need to reset the configuration.yaml settings. If Cloudflare is already installed, you should uninstall it, restart the system, and then proceed with these steps. After installing Cloudflare, restart the system and proceed with the SmartThings setup. I hope this information helps you resolve your issues. If you have any other questions, please feel free to ask. Have a great day! |
Your tipps dont resolve this issue. |
My current configuration has a webserver on a raspberry pi with a reverse proxy configured with Nginx. Finally I found a temporary solution that still adds the SmartThink intergration correctly. Install the NGINX Home Assistant SSL proxy add-in and configure it with your own (already active) domain and open port 443 to Home Assistant. SmartThinks can now be added (with the same certificate I already had active) to Home Assistant using the webhook. |
No. I won’t open a port. Every other Cloud Integration is working without opening a port like Tado, Gardena, Alexa, Nuki, BMW, Ring and so on. So the Devs should get this working without bothering the users |
Sorry y'all are having issues configuring the prerequisites for this integration. I'm closing this thread as there isn't an issue with the integration in HA and GitHub is not a support forum. |
The problem
When setting up Smartthings after entering the access token I get the error "SmartThings could not validate the webhook URL. Please ensure the webhook URL is reachable from the internet and try again.". the logs show this timeout error, but the error comes immediately, less than 2 seconds, it doesn't feel like a timeout.
I have done the curl -X lifecycle PING from an external linux host and it succeeds. I have tried adding the debug log config yaml, but it has no change, I'm guessing because the error is from configflow? I also do not have a .storage folder.
Additionally, if I put the callback URL into a browser on an outside host, I do get the expected "Webhook only supports PUT,POST methods but GET was received" error, so I believe my ssl and external access is working fine.
What version of Home Assistant Core has the issue?
core-2023.8.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Smartthings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
My home assistant OS is running as a virtual machine on a Synology NAS, and https to http reverse proxied via Synology's such that Synology handles the SSL cert. I'm also using ducknds DDNS. The HA Android app on cell data and Google's Assistant connections work via https without issue.
The text was updated successfully, but these errors were encountered: