I have added API and speaker but when I try to click on it in smartthing app, the whole app is crashing on the phone.
on the relay i see following logs:
2018-09-05T05:15:22.155Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:15:22.160Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:15:22.169Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:15:22.174Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.786Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.790Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.795Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.803Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.839Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.842Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
2018-09-05T05:18:26.847Z discover(): exception while prcessing service: TypeError: Cannot read property ‘0’ of undefined
When i add the device:
2018-09-05T05:25:12.175Z dceea7621495f48aa4ca098cb8f58fb9 CastDevice.createSubscription(): callback: {“protocol”:“http:”,“slashes”:true,“auth”:null,“host”:“0.0.0.0:0”,“port”:“0”,“hostname”:“0.0.0.0”,“hash”:null,“search”:null,“query”:null,“pathname”:"/",“path”:"/",“href”:“http://0.0.0.0:0/”}
2018-09-05T05:25:12.183Z dceea7621495f48aa4ca098cb8f58fb9 sendCallBack(): cannot send callback: {“protocol”:“http:”,“slashes”:true,“auth”:null,“host”:“0.0.0.0:0”,“port”:“0”,“hostname”:“0.0.0.0”,“hash”:null,“search”:null,“query”:null,“pathname”:"/",“path”:"/",“href”:“http://0.0.0.0:0/”}, error: Error: connect ECONNREFUSED 0.0.0.0
2018-09-05T05:25:12.258Z on(“request”): /device/dceea7621495f48aa4ca098cb8f58fb9/subscribe/0.0.0.0:0
2018-09-05T05:25:12.260Z dceea7621495f48aa4ca098cb8f58fb9 CastDevice.removeSubscription():
2018-09-05T05:25:12.261Z dceea7621495f48aa4ca098cb8f58fb9 CastDevice.createSubscription(): callback: {“protocol”:“http:”,“slashes”:true,“auth”:null,“host”:“0.0.0.0:0”,“port”:“0”,“hostname”:“0.0.0.0”,“hash”:null,“search”:null,“query”:null,“pathname”:"/",“path”:"/",“href”:“http://0.0.0.0:0/”}
2018-09-05T05:25:12.267Z dceea7621495f48aa4ca098cb8f58fb9 sendCallBack(): cannot send callback: {“protocol”:“http:”,“slashes”:true,“auth”:null,“host”:“0.0.0.0:0”,“port”:“0”,“hostname”:“0.0.0.0”,“hash”:null,“search”:null,“query”:null,“pathname”:"/",“path”:"/",“href”:“http://0.0.0.0:0/”}, error: Error: connect ECONNREFUSED 0.0.0.0