question

rohan1988 avatar image
rohan1988 asked

Amazon Skill set suddenly stopped working "The response is invalid"

Amazon alexa skill set suddenly stopped working. It was working fine, and we did not do any changes. Now for any request it is giving "The response is invalid" error.

I checked the response and did not see any issue in it. If i test my lambda service, it is working fine.

Not sure what is happening, we got an important demo over a weekend and it stopped working. Appreciate any inputs/suggestion.

Please find the Request/Response from Lamba:

Request:

{
  "session": {
    "new": true,
    "sessionId": "SessionId.48a8ba32-a3a6-47d1-96c6-62499eaa68dc",
    "application": {
      "applicationId": "amzn1.ask.skill.13bee533-aaf4-45a1-904e-2e9ca497802d"
    },
    "attributes": {},
    "user": {
      "userId": "amzn1.ask.account.AEZSVYV6NYFWLXB5USIA5MQVZJSDG7GNJGT26G3SR2EPMGNM6FVS26737SMXKP7LB5J3WWG2JMHXZ727QPBUEBZXG3FRXMDHUB2XLBAV75ZKMOGMTI6OI5IHUI6B2ZKKUYGPAV2WZ5EBNHOEAJTKNKAWHTZ5NKMZ4EZOHW26PUZI3FJWKDHAIGI6YQXDH2MXCDAFQC63Q3F76VI"
    }
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "EdwRequestId.1b351eaa-e4fa-4788-b458-d28c717fafb6",
    "intent": {
      "name": "SalesVolumeIntent",
      "slots": {
        "SalesRegion": {
          "name": "SalesRegion",
          "value": "central"
        }
      }
    },
    "locale": "en-US",
    "timestamp": "2017-09-29T21:50:32Z"
  },
  "context": {
    "AudioPlayer": {
      "playerActivity": "IDLE"
    },
    "System": {
      "application": {
        "applicationId": "amzn1.ask.skill.13bee533-aaf4-45a1-904e-2e9ca497802d"
      },
      "user": {
        "userId": "amzn1.ask.account.AEZSVYV6NYFWLXB5USIA5MQVZJSDG7GNJGT26G3SR2EPMGNM6FVS26737SMXKP7LB5J3WWG2JMHXZ727QPBUEBZXG3FRXMDHUB2XLBAV75ZKMOGMTI6OI5IHUI6B2ZKKUYGPAV2WZ5EBNHOEAJTKNKAWHTZ5NKMZ4EZOHW26PUZI3FJWKDHAIGI6YQXDH2MXCDAFQC63Q3F76VI"
      },
      "device": {
        "supportedInterfaces": {}
      }
    }
  },
  "version": "1.0"
}

Response:

{
  "version": "1.0",
  "response": {
    "outputSpeech": {
      "text": "For past one month the sales volume for central region is dollar 139674.26",
      "type": "PlainText"
    },
    "shouldEndSession": true,
    "reprompt": {
      "outputSpeech": {
        "text": "For past one month the sales volume for central region is dollar 139674.26",
        "type": "PlainText"
      }
    },
    "card": {
      "content": "SessionSpeechlet - For past one month the sales volume for central region is dollar 139674.26",
      "type": "Simple",
      "title": "SessionSpeechlet - Sales_Volume"
    }
  },
  "sessionAttributes": {}
}
alexa skills kitalexa voice servicelambda
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Brian@Amazon avatar image
Brian@Amazon answered

Does this skill work when used on a physical device or echosim.io?

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tobi Oredein avatar image
Tobi Oredein answered

I am currently facing the same problem. My Skill stops working since today (1st of october). I am getting a Bad Response when trying to communicate via device or echosim.io. When testing the skill via the developers console everything works fine.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jenn@amazon avatar image
Jenn@amazon answered

A Response with the 'shouldEndSession' flag set to 'true' shouldn't include a reprompt. Try removing the reprompt information from the Response.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tobi Oredein avatar image
Tobi Oredein answered

The problem seems to be solved after updating/re-setting the WiFi information for the device via Alexa App.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rohan1988 avatar image
rohan1988 answered

Sorry for late reply, I think it was some glitches on amazon, as we did not do any changes and it started working after 2-3 hours.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.