noelportugal / alexa-reminders

A nodejs library to create Amazon Echo Alexa Reminders
MIT License
18 stars 8 forks source link

Error "Unexpected token S in JSON at position 1" #5

Open raymond-cc opened 6 years ago

raymond-cc commented 6 years ago

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?

YorkshireKev commented 6 years ago

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!