I am developing an Alexa skill that using the Reminder API, it was working fine. Just these days it can not create reminders, I have checked the cloud watch, there shown Service Error: Unknow error
Is anyone knows what' wrong with the Reminder API?
This is my code of the creating reminder. Thanks for your help.
const reminderRequest = {
trigger: {
type: "SCHEDULED_ABSOLUTE",
// offsetInSeconds : '10',
scheduledTime: taskTime.format('YYYY-MM-DDTHH:mm:00.000'),
timeZoneId: timezone,
},
alertInfo: {
spokenInfo: {
content: [{
locale: "en-GB",
text: message,
}]
}
},
pushNotification: {
status: "ENABLED"
}
};
try {
const reminderResponse = await remindersApiClient.createReminder(reminderRequest);
console.log(JSON.stringify(reminderResponse));
const reminderId = reminderResponse["alertToken"];
console.log("reminderId: " + reminderId);
return reminderId;
} catch (error) {
console.log ("error: " + error);
}