rgraciano / echo-sonos

Amazon Echo integration with Sonos
Other
712 stars 235 forks source link

Lambda Test Error: Cannot read property 'System' of undefined #193

Closed bradanlane closed 6 years ago

bradanlane commented 6 years ago

Testing the Lambda function - using the code from lambda/play_intent_testreq.json (with my own applicationID).

Running the test generates the following:

  "errorMessage": "Cannot read property 'System' of undefined",
  "errorType": "TypeError",
  "stackTrace": [
    "EchoSonos.setEchoId (/var/task/index.js:43:40)",
    "AlexaSkill.execute (/var/task/AlexaSkill.js:101:14)",
    "EchoSonos.intentHandlers.NextTrackIntent.PreviousTrackIntent.WhatsPlayingIntent.promise.then.catch.promise.then.catch.exports.handler (/var/task/index.js:796:15)"
  ]
}

Things I have verified:

I'm not following where the initialization would have occurred.

What is odd is a test from the Alexa Skills page works as does the actual skill from my home Echo Dot.

bradanlane commented 6 years ago

since things appear to be working I will close this issue