Error 403 from CloudFront

When I try to Register my new app for the webhook, I got a error 403 from CloudFront

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The request could not be satisfied</TITLE> </HEAD><BODY> <H1>403 ERROR</H1> <H2>The request could not be satisfied.</H2> <HR noshade size="1px"> Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. <BR clear="all"> If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. <BR clear="all"> <HR noshade size="1px"> <PRE> Generated by cloudfront (CloudFront) Request ID: MT3hKNqR1X8f7dY83N7bJaK7OiheP32H8o-ucsnXOrfVpUZGQKfJfw== </PRE> <ADDRESS> </ADDRESS> </BODY></HTML>

Tagging @nayelyz @AlejandroPadilla

Hi @vinnygambiny to help you I will need more context about your integration

when you say app, Are you referring to SmartApp or Schema? and what are the steps that you are following to register your app?

It’s here,

Mmm as far as I could research the issue is from AWS, Can you see the logs from AWS at the moment to try to register your SmartApp?

I see nothing more in my side. The response is what you see in the error message.

The request :

Okay let me check it, please, can you try again and share the following information?

  • the App Id
  • the time/date when you try and your timezone

The project id is prSu7CSWnLNVxuQC and I just send it so at 15:56GMT

X-Amz-Cf-Id:aFFV04X5jcsXnOeXUJ3SqKLhruOLPJ0ewB38Vz6KiDobBo0kKCr7-Q==
X-Amz-Cf-Pop: YUL62-P2

HI @vinnygambiny after to investigated with the team, they commented that CloudFront that normally used for static content, and I’m not familiar with that service, what we have seen is that developers used the API and the Lambda option to created SmartApps.

But the documentation tell to register SmartApp by Developer Workspace: SmartApp Registration | SmartThings Developers

It’s at the step 7 I got the error.

If I create the app with the API, the app is created but not show in my SmartThings mobile app. Probably because it’s not registred

The app is not shown in the SmartThings mobile app, because it is not deployed to test when you create it from the API the option is not available,
this is from the documentation on step 2

Ensure the URL is HTTPS if hosting via webhook endpoint

I’m not familiar with Cloudfront, but if you want to use AWS you can try with AWS API gateway to host your webhook.

I’m using https for my webhook.

But the cloudfront error is not on my side. It’s the post request when I click Save at the step 7 in the Developer Workspace. It’s your Cloudfront



Okay thanks the explaining the situation, I understand let me check it with the corresponding team :saluting_face: