Alexa Reminders not found

amazon-alexa

#1

I am trying to create reminders. I followed this example: https://www.jovo.tech/docs/v2/amazon-alexa/reminders and https://developer.amazon.com/en-US/docs/alexa/smapi/alexa-reminders-api-reference.html#reminder-object

if (!this.$alexaSkill.hasPermissionAccepted()) {
  this.$alexaSkill.askForReminders();
}

and I try to add the reminder like this:

try {
  const reminderAbsolute = {
    "requestTime" : "2019-09-22T19:04:00.672",
    "trigger": {
      "type": "SCHEDULED_ABSOLUTE",
      "scheduledTime" : "2019-09-22T19:00:00.000",
      "timeZoneId": 'America/Sao_Paulo',
      "recurrence" : {                     
        "startDateTime": "2019-05-10T6:00:00.000",                       
        "endDateTime" : "2019-08-10T10:00:00.000",  
        "recurrenceRules" : [                                          
           "FREQ=DAILY;BYHOUR=6;BYMINUTE=10;BYSECOND=0;INTERVAL=1;",
           "FREQ=DAILY;BYHOUR=17;BYMINUTE=15;BYSECOND=0;INTERVAL=1;",
           "FREQ=DAILY;BYHOUR=22;BYMINUTE=45;BYSECOND=0;INTERVAL=1;"
        ]               
      }
    },
    "alertInfo": {
      "spokenInfo": {
        "content": [{
          "locale": "pt-BR",
          "text": "walk the dog",
          "ssml": "<speak> walk the dog</speak>"
        }]
      }
    },
    "pushNotification": {
      "status": "ENABLED"
    }
  };
  await this.$alexaSkill.$user.setReminder(reminderAbsolute);
  return this.tell(`Ok`);
} catch (error) {
  console.error(`error: ${error}`);
}

}

and I get the error: Error: Internal Server error

I just copied and pasted the examples and it gives this error. Someone help me?


#2

Hey @hitsugaya

Could you try another reminder object? This one is from our examples

{
                'requestTime': '2016-09-22T19:04:00.672',           // valid ISO 8601 format - describes the time when event actually occurred
                'trigger': {
                    'type': 'SCHEDULED_ABSOLUTE',                 // Indicates type of trigger
                    'scheduledTime': '2018-11-02T19:35:00.000',    // valid ISO 8601 format - Intended trigger time
                    'recurrence': {                               // should contain all the recurrence information
                        'freq': 'WEEKLY',                         // frequency type of the recurrence
                        'byDay': ['FR'],                           // specifies a list of days within a week
                    },
                },
                'alertInfo': {
                    'spokenInfo': {
                        'content': [{
                            'locale': 'en-US',                     // locale in which value is specified
                            'text': 'hello world',                // text that will be used for display and spoken purposes
                        }],
                    },
                },
                'pushNotification': {
                    'status': 'ENABLED',                          // if a push notification should be sent or not [default = ENABLED]
                },
            };

#3

Thanks. That way, it worked


#4

Just realized that my example is deprecated. It’s working now, but won’t in the future.

Can you try the example from the Alexa docs without changing the locale?

{
   "requestTime" : "2019-09-22T19:04:00.672",
   "trigger": {
        "type" : "SCHEDULED_ABSOLUTE",
        "scheduledTime" : "2019-09-22T19:00:00.000",
        "timeZoneId" : "America/Los_Angeles",
        "recurrence" : {                     
          "startDateTime": "2019-05-10T6:00:00.000",                       
          "endDateTime" : "2019-08-10T10:00:00.000",  
          "recurrenceRules" : [                                          
             "FREQ=DAILY;BYHOUR=6;BYMINUTE=10;BYSECOND=0;INTERVAL=1;",
             "FREQ=DAILY;BYHOUR=17;BYMINUTE=15;BYSECOND=0;INTERVAL=1;",
             "FREQ=DAILY;BYHOUR=22;BYMINUTE=45;BYSECOND=0;INTERVAL=1;"
          ]               
        }
   },
   "alertInfo": {
        "spokenInfo": {
            "content": [{
                "locale": "en-US", 
                "text": "walk the dog",
                "ssml": "<speak> walk the dog</speak>"  
            }]
        }
    },
    "pushNotification" : {                            
         "status" : "ENABLED"
    }
}

#5

Yes, your example is obsolete. I think it is not worthwhile to continue developing my skill, since at any moment, it can stop working.

If you put your last example, which is the same as the official Alexa documentation, it just doesn’t work, it gives the error Error: Internal Server error. Just as I described in the first post on that topic.


#6

Make sure startDateTimeand endDateTimeare in the future.


#7

Sending this object, with startDateTime and endDateTime as you suggested, I get the same error Error: Internal Server error:

{
        "requestTime": "2020-11-23T19:04:00.672",
        "trigger": {
          "type": "SCHEDULED_ABSOLUTE",
          "scheduledTime": "2020-11-23T19:00:00.000",
          "timeZoneId": "America/Los_Angeles",
          "recurrence": {
            "startDateTime": "2020-11-25T6:00:00.000",
            "endDateTime": "2020-11-26T10:00:00.000",
            "recurrenceRules": [
              "FREQ=DAILY;BYHOUR=6;BYMINUTE=10;BYSECOND=0;INTERVAL=1;",
              "FREQ=DAILY;BYHOUR=17;BYMINUTE=15;BYSECOND=0;INTERVAL=1;",
              "FREQ=DAILY;BYHOUR=22;BYMINUTE=45;BYSECOND=0;INTERVAL=1;"
            ]
          }
        },
        "alertInfo": {
          "spokenInfo": {
            "content": [{
              "locale": "en-US",
              "text": "walk the dog",
              "ssml": "<speak> walk the dog</speak>"
            }]
          }
        },
        "pushNotification": {
          "status": "ENABLED"
        }
      }

#8

Weird, I was able to reproduce it with the timestamps in the past. What’s the locale of your skill you’re testing with?


#9

it didn’t work either with "timeZoneId": "America/Los_Angeles" or with "timeZoneId": "America/Sao_Paulo". I’m in Brazil.