Couldn't add device on smart thing app

I was creating a dummy project to get some idea about smart thing so I created a project, configured with a oauth2 server, created aws lamda, connected to it with a cloud connector.
I deployed the project to test, on developer workspace it shows as ‘Deployed to test’.
On the smart thing app I can see the app and device inside ‘My testing devices’, but when I try to connect to it I get an error:

Couldn’t add device
A network or server error occurred. Try again later.

I couldn’t find the issue. Is there something that I’m missing?

Tagging @nayelyz @erickv

Do you have Auth page ?

Welcome to the SmartThings Community, @Rustam_Niraula!
If the error is received before you get the login page from your OAuth server, you should check if there’s an issue with it because this is the first URL called.

If you’re having issues with this kind of integration, here are some samples to get you started:

Let me know if you have any doubts.

I changed cloud connector to webhook endpoint and it’s working now.

1 Like

That’s great!
Please, remember to select the post that helped you find the solution so other Community members can take reference from it.
Thanks!

Hi, is there an example project implementation of cloud integration using Lambda function?

Hi @Surabhi_S we received your mail and we responded to you I hope the information can help you :slight_smile: