You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears to have been introduced when support for an array of media elements was added, I'm not sure if the candidate fix introduces any regressions, but arrays and single media elements are working for me after the code change below.
error groovy.lang.MissingPropertyException: No such property: mediaTitle for class: org.json.JSONArray @line 352 (getPresetObject)
debug Executing 'playPreset': 1, key: preset1, defaultMediaTitle: Preset 1
debug Executing 'preset1'
A workaround discussed in the forum to avoid the error involved removing the brackets so that arrays aren't used (this is an incomplete workaround though because an array of media elements can't be used):
Ran into this error and found a few instances in the forum, for example: https://community.smartthings.com/t/release-cast-web-v1-2-1-chromecast-device-handler-smartapp/88038/1164
It appears to have been introduced when support for an array of media elements was added, I'm not sure if the candidate fix introduces any regressions, but arrays and single media elements are working for me after the code change below.
Test Preset object to cause the error:
Error:
A workaround discussed in the forum to avoid the error involved removing the brackets so that arrays aren't used (this is an incomplete workaround though because an array of media elements can't be used):
The goal is to find a way to retain the ability to provide an array for each preset.
The text was updated successfully, but these errors were encountered: