Хорошо, я пытаюсь реализовать простой навык alexa и связать его с веб-сервисом. Когда я запускаю навык в симуляторе, ответ следующий: я не понимаю, почему он такой огромный.
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.f184bf24-6291-4a99-8240-7af751bbcbf2",
"application": {
"applicationId": "amzn1.ask.skill.79cb1633-283a-4311-9829-d47bf09ef2ba"
},
"user": {
"userId": "amzn1.ask.account.AGCJTCYTODD6C5ERX3OSALKYGW35A3BCJD4RJZRRFRE756PEEGSBQVDTADENXVHROUBGENO4MJIWGFPOBFVUS4JVCHH7B5GJRG7EQ6ZQIR3KTCYBAW5RXN65VNA4TB3EYKTIFEKFOFNAVVKODF6W7BBTBPVCDXXIRNS7GLVPJRK7ZDSKFB7BB4OM4D4R4N4Z65F7SXSSYKZMXKY"
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.79cb1633-283a-4311-9829-d47bf09ef2ba"
},
"user": {
"userId": "amzn1.ask.account.AGCJTCYTODD6C5ERX3OSALKYGW35A3BCJD4RJZRRFRE756PEEGSBQVDTADENXVHROUBGENO4MJIWGFPOBFVUS4JVCHH7B5GJRG7EQ6ZQIR3KTCYBAW5RXN65VNA4TB3EYKTIFEKFOFNAVVKODF6W7BBTBPVCDXXIRNS7GLVPJRK7ZDSKFB7BB4OM4D4R4N4Z65F7SXSSYKZMXKY"
},
"device": {
"deviceId": "amzn1.ask.device.AGWZGUA4UWCUK6OUYFU4OESBZLGZHENURBQ766JPVRLDG2LOXBH4C2G2GYXTLUR7BXNX6F7XZBIG27YVKMR622QH6RJ3GG4RY4XBPZ5KUS3CJJZC24R3RFGHYWHRJFGIVGXDB3WSSWBAEJRYOIZHUEB725GQ",
"supportedInterfaces": {}
},
"apiEndpoint": "https://api.eu.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb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UpSWU9JWkhVRUI3MjVHUSIsInVzZXJJZCI6ImFtem4xLmFzay5hY2NvdW50LkFHQ0pUQ1lUT0RENkM1RVJYM09TQUxLWUdXMzVBM0JDSkQ0UkpaUlJGUkU3NTZQRUVHU0JRVkRUQURFTlhWSFJPVUJHRU5PNE1KSVdHRlBPQkZWVVM0SlZDSEg3QjVHSlJHN0VRNlpRSVIzS1RDWUJBVzVSWE42NVZOQTRUQjNFWUtUSUZFS0ZPRk5BVlZLT0RGNlc3QkJUQlBWQ0RYWElSTlM3R0xWUEpSSzdaRFNLRkI3QkI0T000RDRSNE40WjY1RjdTWFNTWUtaTVhLWSJ9fQ.k4lCaPLgYJbZTA-Sb_4eY_NBpyLIWChfLIAAHnRxZXWKPSiVPIEIwB_Y9jnhzM5xkOYEw9Zw8Psw1uDeos5TAK1ccNyzjmJqSxF8tswmkckL0N3U3_a37g0XfVTwLtJG-In16Ze8QYr5iqswwkwmX4us-0Ia_O_qhQVD6lLuDXKsbYvl_nCTw3SQjrCSYwl-nQRfNcaDCmKMd7sNtL7MIdnMIjX8TyurSbIdWxHuvn7IloMMVY-mElIYrhwgG5jPcYM-L14POWhhfl7o9_j_TEgWteTT3gCbQ3niKMHKz9t3Ld4bgDNDYhaFVRgjmjSGEIPD9i4NI5R6WahLsG-zYg"
},
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
]
},
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.193511f5-baa8-4571-a5ec-08afd7545954",
"timestamp": "2020-03-18T10:44:49Z",
"locale": "en-US",
"shouldLinkResultBeReturned": false
}
}
и
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.f184bf24-6291-4a99-8240-7af751bbcbf2",
"application": {
"applicationId": "amzn1.ask.skill.79cb1633-283a-4311-9829-d47bf09ef2ba"
},
"user": {
"userId": "amzn1.ask.account.AGCJTCYTODD6C5ERX3OSALKYGW35A3BCJD4RJZRRFRE756PEEGSBQVDTADENXVHROUBGENO4MJIWGFPOBFVUS4JVCHH7B5GJRG7EQ6ZQIR3KTCYBAW5RXN65VNA4TB3EYKTIFEKFOFNAVVKODF6W7BBTBPVCDXXIRNS7GLVPJRK7ZDSKFB7BB4OM4D4R4N4Z65F7SXSSYKZMXKY"
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.79cb1633-283a-4311-9829-d47bf09ef2ba"
},
"user": {
"userId": "amzn1.ask.account.AGCJTCYTODD6C5ERX3OSALKYGW35A3BCJD4RJZRRFRE756PEEGSBQVDTADENXVHROUBGENO4MJIWGFPOBFVUS4JVCHH7B5GJRG7EQ6ZQIR3KTCYBAW5RXN65VNA4TB3EYKTIFEKFOFNAVVKODF6W7BBTBPVCDXXIRNS7GLVPJRK7ZDSKFB7BB4OM4D4R4N4Z65F7SXSSYKZMXKY"
},
"device": {
"deviceId": "amzn1.ask.device.AGWZGUA4UWCUK6OUYFU4OESBZLGZHENURBQ766JPVRLDG2LOXBH4C2G2GYXTLUR7BXNX6F7XZBIG27YVKMR622QH6RJ3GG4RY4XBPZ5KUS3CJJZC24R3RFGHYWHRJFGIVGXDB3WSSWBAEJRYOIZHUEB725GQ",
"supportedInterfaces": {}
},
"apiEndpoint": "https://api.eu.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZC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LVVMzQ0pKWkMyNFIzUkZHSFlXSFJKRkdJVkdYREIzV1NTV0JBRUpSWU9JWkhVRUI3MjVHUSIsInVzZXJJZCI6ImFtem4xLmFzay5hY2NvdW50LkFHQ0pUQ1lUT0RENkM1RVJYM09TQUxLWUdXMzVBM0JDSkQ0UkpaUlJGUkU3NTZQRUVHU0JRVkRUQURFTlhWSFJPVUJHRU5PNE1KSVdHRlBPQkZWVVM0SlZDSEg3QjVHSlJHN0VRNlpRSVIzS1RDWUJBVzVSWE42NVZOQTRUQjNFWUtUSUZFS0ZPRk5BVlZLT0RGNlc3QkJUQlBWQ0RYWElSTlM3R0xWUEpSSzdaRFNLRkI3QkI0T000RDRSNE40WjY1RjdTWFNTWUtaTVhLWSJ9fQ.k4lCaPLgYJbZTA-Sb_4eY_NBpyLIWChfLIAAHnRxZXWKPSiVPIEIwB_Y9jnhzM5xkOYEw9Zw8Psw1uDeos5TAK1ccNyzjmJqSxF8tswmkckL0N3U3_a37g0XfVTwLtJG-In16Ze8QYr5iqswwkwmX4us-0Ia_O_qhQVD6lLuDXKsbYvl_nCTw3SQjrCSYwl-nQRfNcaDCmKMd7sNtL7MIdnMIjX8TyurSbIdWxHuvn7IloMMVY-mElIYrhwgG5jPcYM-L14POWhhfl7o9_j_TEgWteTT3gCbQ3niKMHKz9t3Ld4bgDNDYhaFVRgjmjSGEIPD9i4NI5R6WahLsG-zYg"
},
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
]
},
"request": {
"type": "SessionEndedRequest",
"requestId": "amzn1.echo-api.request.60924b30-1c6a-442c-bd8b-4b57145fae2e",
"timestamp": "2020-03-18T10:44:50Z",
"locale": "en-US",
"reason": "ERROR",
"error": {
"type": "INVALID_RESPONSE",
"message": "An exception occurred while dispatching the request to the skill."
}
}
}
Не могли бы вы объяснить это мне, я пытаюсь реализовать простой навык, с конечной точкой в виде веб-службы https, работающей через ngrok + flask_ask