Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!

question

jacten avatar image
jacten asked

Why am I getting "Error submitting Manual JSON The input was incompatible." on every manual JSON input?

I am trying to add CanFulfillIntentRequest to my app and when I enter the manual JSON to test it I get the message "Error submitting Manual JSON The input was incompatible."

To me this would indicate that somehow what I am not giving it is not formatted correctly. But I copied it directly from the example test on: https://developer.amazon.com/docs/custom-skills/implement-canfulfillintentrequest-for-name-free-interaction.html#create-the-json-for-testing-your-skill

I have also tried using the alexa simulator and copying the input JSON from there and no matter what I input, I get that same message. Is there something broken with Manual JSON input? I haven't found anyone else posting that they even get this message.

alexa skills kitalexa simulatorcanfulfillintentrequest
10 |5000

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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello @jacten and thanks for posting.

Can you please share the following so I can further assist you:
-skill ID;
- the JSON you are tyring to manually submit;

Regards,
Barry

10 |5000

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

Ashwini avatar image
Ashwini answered

Hi Barry, I am too getting the same error mentioned by @jacten. Here is the json which I am trying to submit

{
  "session":{
    "new": true,
    "sessionId":"amzn1.echo-api.session.5ecc7e6f-0b65-47f1-acc7-8f677f6e00",
    "application":{
      "applicationId":"amzn1.ask.skill.fa3064da-d7fb-4581-b24e-2be16922db"
    },
    "attributes":{
      "game": "math"
    },
    "user":{
      "userId":"amzn1.ask.account.AGZM7BEGCZWJZ6Q2DDMMTACGNUU6VGOE4Y6VAH4WD"
    }
  },
  "request":{
    "type":"CanFulfillIntentRequest",
    "requestId":"amzn1.echo-api.request.f2636d47-98b2-4c29-81ca-835627ee42",
    "intent":{
      "name":"AboutIntent",
      "slots":{
        "game":{
          "name":"game",
          "value":"math"
        }
      }
    },
    "locale":"en-US",
    "timestamp":"2017-10-03T22:02:29Z"
  },
  "context":{
    "AudioPlayer":{
      "playerActivity":"IDLE"
    },
    "System":{
      "application":{
        "applicationId":"amzn1.ask.skill.fa3064da-d7fb-4581-b24e-2be16222db"
      },
      "user":{
        "userId":".ask.account.AGZM7BEGCZWJZ6Q2DDMMTACGNUU6VGOE4Y6VAH4WDZPY"
      },
      "device":{
        "supportedInterfaces":{
        }
      }
    }
  },
  "version":"1.0"
}
1 comment
10 |5000

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

Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra commented ·

Hello @Ashwini and thank you for your message.

From the json you shared, it looks like the

context.System.user.userId

is not in the correctly format. It should look like this:

amzn1.ask.account.AGZM7BEGCZWJZ6Q2DDMMTACGNUU6VGOE4Y6VAH4WDZPY

Regards,
Barry

0 Likes 0 ·
Nafs avatar image
Nafs answered

Hi, i am getting error as "Error submitting manual JSON", The input was incompatible.Can u plz look into my JSON.

My endpoints are also correct.

My skill id is

"amzn1.ask.skill.a744ad1a-3b04-4ef3-a3c1-20418887c71e"
Following is my JOSN request code.

{
    "version": "1.0",
    "session": {
        "new": true,
        "sessionId": "amzn1.echo-api.session.3a8fcd78-6ab8-4390-ad0c-15aea8c4a4f4",
        "application": {
            "applicationId": "amzn1.ask.skill.80c91006-4f8f-4a05-9baf-4c37a18191d5"
        },
        "user": {
            "userId": "amzn1.ask.account.AFKKIW5MTXKXGXTMKKLAOSYNJ45U3JSHLNNV6XGQLO7VTSQ4M6KQALOWZG2BL5TB45O46BGN23HQPUPRKQZGUYVRPFJNO4P5R2L5KXYFF2BDBUM5XJCDKN2HWA4NU32MMVC2JJL2DW3XJQ536QG5RA55XPUXBYAR65TZNZBGBI2YY7WC2FUS62J75EBK36HXOMTDWZPHBPNACRQ"
        }
    },
    "context": {
        "System": {
            "application": {
                "applicationId": "amzn1.ask.skill.80c91006-4f8f-4a05-9baf-4c37a18191d5"
            },
            "user": {
                "userId": "amzn1.ask.account.AFKKIW5MTXKXGXTMKKLAOSYNJ45U3JSHLNNV6XGQLO7VTSQ4M6KQALOWZG2BL5TB45O46BGN23HQPUPRKQZGUYVRPFJNO4P5R2L5KXYFF2BDBUM5XJCDKN2HWA4NU32MMVC2JJL2DW3XJQ536QG5RA55XPUXBYAR65TZNZBGBI2YY7WC2FUS62J75EBK36HXOMTDWZPHBPNACRQ"
            },
            "device": {
                "deviceId": "amzn1.ask.device.AGIIZQ6HONBMW5TTJG2G6BA632Z3Y5YITYPCCXWPCXERPHOYBQJRQ45DHE4PGJMIQ3T6GQUAWWFXZD4MURHH6KIGFBBIYC4TBJEJUETDUAR2A7YI6WNOLZCKAIH6Q6U3CCNQSFCOG4RNMK6AFCEUTJWAKQ7ROB7R6SXV2BTFQ6POJR47JATYM",
                "supportedInterfaces": {}
            },
            "apiEndpoint": "https://api.eu.amazonalexa.com",
            "apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLjgwYzkxMDA2LTRmOGYtNGEwNS05YmFmLTRjMzdhMTgxOTFkNSIsImV4cCI6MTU0MzkwMTU1NSwiaWF0IjoxNTQzODk3OTU1LCJuYmYiOjE1NDM4OTc5NTUsInByaXZhdGVDbGFpbXMiOnsiY29uc2VudFRva2VuIjpudWxsLCJkZXZpY2VJZCI6ImFtem4xLmFzay5kZXZpY2UuQUdJSVpRNkhPTkJNVzVUVEpHMkc2QkE2MzJaM1k1WUlUWVBDQ1hXUENYRVJQSE9ZQlFKUlE0NURIRTRQR0pNSVEzVDZHUVVBV1dGWFpENE1VUkhINktJR0ZCQklZQzRUQkpFSlVFVERVQVIyQTdZSTZXTk9MWkNLQUlINlE2VTNDQ05RU0ZDT0c0Uk5NSzZBRkNFVVRKV0FLUTdST0I3UjZTWFYyQlRGUTZQT0pSNDdKQVRZTSIsInVzZXJJZCI6ImFtem4xLmFzay5hY2NvdW50LkFGS0tJVzVNVFhLWEdYVE1LS0xBT1NZTko0NVUzSlNITE5OVjZYR1FMTzdWVFNRNE02S1FBTE9XWkcyQkw1VEI0NU80NkJHTjIzSFFQVVBSS1FaR1VZVlJQRkpOTzRQNVIyTDVLWFlGRjJCREJVTTVYSkNES04ySFdBNE5VMzJNTVZDMkpKTDJEVzNYSlE1MzZRRzVSQTU1WFBVWEJZQVI2NVRaTlpCR0JJMllZN1dDMkZVUzYySjc1RUJLMzZIWE9NVERXWlBIQlBOQUNSUSJ9fQ.KEE4z-M6gNVhuBFA9O-KiWooUAEEEaw41HnpUivcjgIb5vQ69ltPk4pREZ9J_bAz8nGkTDP1OTYFT5tkbZ9MicGDtAIPfbNA6NZDet-2Vo13D1Rd93jZW-ope_gnvUf8btcOQ0nsTME6xuGiVjcurC1csE38cXlmAZVsc-F_DaqCwNdebPGKHGCpyZuSTaGjmexWw1yKzeZ64crEe8QD5Sa_4tWcfCC9uAspSLCXUxOyV27jxxQr2jMv0dbpxOkSlRBSYywOqxr8zwyYefzrhLhagLo8haYVQjjfX8Kp-PZR9eFr0dpsavrlUvblK8fHZ0QRwiAIFSV0xHW0u43T8A"
        },
        "Viewport": {
            "experiences": [
                {
                    "arcMinuteWidth": 246,
                    "arcMinuteHeight": 144,
                    "canRotate": false,
                    "canResize": false
                }
            ],
            "shape": "RECTANGLE",
            "pixelWidth": 1024,
            "pixelHeight": 600,
            "dpi": 160,
            "currentPixelWidth": 1024,
            "currentPixelHeight": 600,
            "touch": [
                "SINGLE"
            ]
        }
    },
    "request": {
        "type": "CanFulfillIntentRequest",
        "requestId": "amzn1.echo-api.request.c73c6017-217a-4453-8f2c-8fb0ab4edba5",
        "timestamp": "2018-12-04T04:32:35Z",
        "locale": "en-US",
        "intent": {
            "name": "HelloWorldIntent",
            "confirmationStatus": "NONE"
        }
    }
}

	
1 comment
10 |5000

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

Amazon_Bernardo Bezerra avatar image Amazon_Bernardo Bezerra commented ·

Hello @Nafs,

I searched for the skill ID you provided but could not find any. Can you please verify if that is the correct one?

Regards,
Barry

0 Likes 0 ·