Subscriptions preventing custom SmartApps from being


(Michael Lasevich) #1

Having some odd behavior from my test SmartApps. Any time I have an app that subscribes to events I have hard time deleting instances of it. When I delete it from Android app I get:

An Unexpected error occurred.

When deleting from it IDE I get:

Oh No! Something Went Wrong!

Error: 500: Internal Server Error
URI: /installedSmartApp/show/.....
Reference Id: ....
Date: Tue May 05 04:53:02 UTC 2015
Class: groovy.lang.MissingPropertyException
Message: No such property: id for class: org.codehaus.groovy.grails.web.taglib.NamespacedTagDispatcher

I did find a way around it - I alter the updated() method to NOT re-subscribe to events and update. Then Update the app and then delete.

It makes me think ST is somehow trying to delete the app instance before removing the subscriptions. I added the unsubscribe() call to the uninstalled() method, but it does not seem to work.

I cannot imagine this is normal - what am I missing?

-M