alexa-reminders icon indicating copy to clipboard operation
alexa-reminders copied to clipboard

Error "Unexpected token S in JSON at position 1"

Open raymond-cc opened this issue 6 years ago • 1 comments

Hello,

Since last week, running the example code for the reminders.login() function gives me the error Unexpected token S in JSON at position 1 in the callback function. Does anybody know what the issue is?

raymond-cc avatar Aug 25 '18 08:08 raymond-cc

I was also getting this. For me it seemed to be caused by the login timing out, though I guess invalid credentials could also be a cause. In the code there is a pause after login (at line 22). I increased this from to 2.5 seconds (1000 to 2500) and I'm now login is working every time. The call to setReminder is failing for me, but I guess that's a different issue!

YorkshireKev avatar Sep 08 '18 13:09 YorkshireKev