I have gone through the process of writing and publishing a smart app using a web hook endpoint. I have used both glitch and ngrok to host and both have in the past worked fine. However sometimes when I restart the servers and then go to publish the smartapp again, goo through the verification process I am greeted with the screen below.
I know the code works fine as the exact same code has worked before (it might just magically work 5 minutes after I post this) but is there anyway to get more information than just the pop up window on my phone? According the log information there is nothing wrong but there is no error
Things I have already tried:
1.Restart the server
2.Create a new project with the same code
3.Generate a new ngrok/glitch url and verify again
Hello @Warren1,
I noticed in the response of your CONFIGURATION/INITIALIZE lifecycle that the permissions are included. Do you have by chance a configuration similar to the one below?
Having configureI18n() and permissions() together can cause a conflict because the first one takes the default configuration and the second is used to select specific scopes from the ones configured in the Developer Workspace.
If you want to keep the permissions definition, you will need to delete configureI18n() and add the appId(). For more information about the SmartApp configuration, you can refer to this file in the SmartApp Node JS SDK repository.
If the previous situation is not your case, would you mind sharing with me the SmartApp configuration, please?
I deleted the smart things application on my phone and reinstalled it to see if it would make any difference. I can no longer see any of my custom smart applications at all in the app even after going through the process of republishing them.
I have changed the configuration to the snippet below.
// *** Define the SmartApp *** //
// All the documentation on the smart app class:
// https://github.com/SmartThingsCommunity/smartapp-sdk-nodejs/blob/master/docs/classes/_smart_app_d_.smartapp.md
app.enableEventLogging(); // Enable event logging on the app
app.appId("Local Smart App")
app.permissions(["r:locations:*","r:devices:*","x:devices:*"]) // Permissions the app requires
This still does not unfortunately solve the problem. Previously I was using the code snippet below.
// *** Define the SmartApp *** //
// All the documentation on the smart app class:
// https://github.com/SmartThingsCommunity/smartapp-sdk-nodejs/blob/master/docs/classes/_smart_app_d_.smartapp.md
app.enableEventLogging(); // Enable event logging on the app
app.configureI18n();
app.permissions(["r:locations:*","r:devices:*","x:devices:*"]) // Permissions the app requires
The code above was working fine up until the 9th of September, now nothing seems to be working.
How do I log this information to a log file to show there is a conflict and catch the error because currently it is showing everything is fine but nothing is working?
Running smarthings on Iphone 6, ios 12.4.8
Smarthings hub V3