spotify-node-applescript icon indicating copy to clipboard operation
spotify-node-applescript copied to clipboard

Check result for undefined and prevent JSON Parse

Open bpeters opened this issue 8 years ago • 4 comments

I was running into issues where getState script would result in undefined which would cause the JSON.parse(result) to throw and error.

bpeters avatar Jul 24 '16 19:07 bpeters

I don't see the use of this change. The JSON.parse error is already handled by try/catch block. This change leads to the undesired result that the callback is called without an error and also without a result.

andrehaveman avatar Aug 17 '16 10:08 andrehaveman

@bpeters Di you find the cause of it ? i'm running into the same issue and cannot find the root cause of this.

Alutun avatar Oct 16 '16 11:10 Alutun

nn

will234 avatar Jul 30 '17 01:07 will234

@bpeters I don't think this fixes the problem.

nzec avatar Jan 17 '18 09:01 nzec