Why I am getting this error and after this occured system error encountered happen.
That is because one of your registered handlers is using the Alexa SDK utility function getIntentName() in it's canHandle() function without first checking if the request type is an IntentRequest.
What is happening is that an AudioPlayer.PlaybackStarted request is being received by your lambda function and the Alexa SDK is running through all of the registered handlers looking for the first one which returns true in it's canHandle() function. It is coming across a handler which is doing as I describe in the first paragraph.
When checking for an Intent name match, you should always check that the request type is an IntentRequest first, otherwise such issues can arise.
Obvioiusly you're going to need a handler for the AudioPlayer.PlaybackStarted request too + all the other required AudioPlayer request types. Presumably you're basing the skill on an Amazon audio player example ? If so then it should have all that you require.
25 People are following this question.