Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Launch request is working, all other commands are not working #5

Open
DeepikaBalaga opened this issue Apr 9, 2021 · 1 comment

Comments

@DeepikaBalaga
Copy link

DeepikaBalaga commented Apr 9, 2021

Hi @ndg63276 ,

I'm not able to get the response for the mentioned commands. Below is the error snippet:
image

Looks like 'permissions_error()' is getting triggered, but I granted permission via the Alexa app (for both home & work)
As allowed the permission while enabling the skill.

Please check and let me know if anything can be sorted out. Or let me know if I need to share more details.
I will be waiting for your response.

For reference, please check the below skill I/O:

JSON input :

{
	"version": "1.0",
	"session": {
		"new": false,
		"sessionId": "amzn1.echo-api.session.64f7fbde-fe82-4671-a863-85c90d20f250",
		"application": {
			"applicationId": "amzn1.ask.skill.701ddb18-b6aa-4882-90e8-0970c0342e66"
		},
		"user": {
			"userId": "amzn1.ask.account.AHTHUQBAZL2ZDCTKZJHVCVFO6YPFEDEAMSGI5TV54YKR3HQT5AF66SXRM3VIA5WQL4WEUYX5VLPL2CDI5ONZJ4MWVBVAC24VMVXJCA4KBE72MYVNVDRSAUJXV2EFDTYSKG5GRZ6BWCEBYH7JBDAZLPNO2XFXOWRUZLYPZM4ZGKDJHPPPPEQX4MCHAUMWMEELGRPMZRO4RTXU42Q",
			"permissions": {
				"consentToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLjcwMWRkYjE4LWI2YWEtNDg4Mi05MGU4LTA5NzBjMDM0MmU2NiIsImV4cCI6MTYxODAwNjY4MywiaWF0IjoxNjE4MDAzMDgzLCJuYmYiOjE2MTgwMDMwODMsInByaXZhdGVDbGFpbXM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aHPUDXMxa03ulwF07zw2HeS-I8Ipq98Y76-Uku_3siIsPqAv998B8l_VRF6OwN_fvV39oD0FvBB7nhWQZ0tClzRmD7yqZ7r43EBXgr7h1SJmfTzJCRkw19YjHq-QVwatRuDmi0_m-tu38pE82j0RVrl6RWWMVwD3OMBFoHcKdYk2sMHcJ7EyXHKAMBo-GyIFxUPJ60sSKlvhlRGDBqap76vXCknXI7iR4m9CXgbBh5u1imZDPyzRYA5c3GAfH8WSE9CO6rQ7TPE_e3JHkqSQ4_9doNPTZBGL57-7dlqgWwP3HVSQiXSj6rGwtlWHX0aQNdZOynxLaZTH0lnCdy_Xig"
			}
		}
	},
	"context": {
		"Viewports": [
			{
				"type": "APL",
				"id": "main",
				"shape": "RECTANGLE",
				"dpi": 213,
				"presentationType": "STANDARD",
				"canRotate": false,
				"configuration": {
					"current": {
						"mode": "HUB",
						"video": {
							"codecs": [
								"H_264_42",
								"H_264_41"
							]
						},
						"size": {
							"type": "DISCRETE",
							"pixelWidth": 1280,
							"pixelHeight": 800
						}
					}
				}
			}
		],
		"Viewport": {
			"experiences": [
				{
					"arcMinuteWidth": 346,
					"arcMinuteHeight": 216,
					"canRotate": false,
					"canResize": false
				}
			],
			"mode": "HUB",
			"shape": "RECTANGLE",
			"pixelWidth": 1280,
			"pixelHeight": 800,
			"dpi": 213,
			"currentPixelWidth": 1280,
			"currentPixelHeight": 800,
			"touch": [
				"SINGLE"
			],
			"video": {
				"codecs": [
					"H_264_42",
					"H_264_41"
				]
			}
		},
		"Extensions": {
			"available": {
				"aplext:backstack:10": {}
			}
		},
		"System": {
			"application": {
				"applicationId": "amzn1.ask.skill.701ddb18-b6aa-4882-90e8-0970c0342e66"
			},
			"user": {
				"userId": "amzn1.ask.account.AHTHUQBAZL2ZDCTKZJHVCVFO6YPFEDEAMSGI5TV54YKR3HQT5AF66SXRM3VIA5WQL4WEUYX5VLPL2CDI5ONZJ4MWVBVAC24VMVXJCA4KBE72MYVNVDRSAUJXV2EFDTYSKG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1VU5YRkxIVTVJVUtVVElMRlVHSTRGSkRGTjRLQUpPRTNITkNLQVE3SU9IWSIsInVzZXJJZCI6ImFtem4xLmFzay5hY2NvdW50LkFIVEhVUUJBWkwyWkRDVEtaSkhWQ1ZGTzZZUEZFREVBTVNHSTVUVjU0WUtSM0hRVDVBRjY2U1hSTTNWSUE1V1FMNFdFVVlYNVZMUEwyQ0RJNU9OWko0TVdWQlZBQzI0Vk1WWEpDQTRLQkU3Mk1ZVk5WRFJTQVVKWFYyRUZEVFlTS0c1R1JaNkJXQ0VCWUg3SkJEQVpMUE5PMlhGWE9XUlVaTFlQWk00WkdLREpIUFBQUEVRWDRNQ0hBVU1XTUVFTEdSUE1aUk80UlRYVTQyUSJ9fQ.aHPUDXMxa03ulwF07zw2HeS-I8Ipq98Y76-Uku_3siIsPqAv998B8l_VRF6OwN_fvV39oD0FvBB7nhWQZ0tClzRmD7yqZ7r43EBXgr7h1SJmfTzJCRkw19YjHq-QVwatRuDmi0_m-tu38pE82j0RVrl6RWWMVwD3OMBFoHcKdYk2sMHcJ7EyXHKAMBo-GyIFxUPJ60sSKlvhlRGDBqap76vXCknXI7iR4m9CXgbBh5u1imZDPyzRYA5c3GAfH8WSE9CO6rQ7TPE_e3JHkqSQ4_9doNPTZBGL57-7dlqgWwP3HVSQiXSj6rGwtlWHX0aQNdZOynxLaZTH0lnCdy_Xig"
				}
			},
			"device": {
				"deviceId": "amzn1.ask.device.AHVBOTQYZCEOMFPG5I624WD3I2OFCJRCDQ27WNIV6P2X7JX5YG4CTIA62OCI4GAYV2KCDYSQSSPPYMF2EXSNGWKM7GW3EM26TEGZA6OEDDUEVBNQW3IVJBSDX22TYCHCUCS3KY4JI5UNXFLHU5IUKUTILFUGI4FJDFN4KAJOE3HNCKAQ7IOHY",
				"supportedInterfaces": {}
			},
			"apiEndpoint": "https://api.eu.amazonalexa.com",
			"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.e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nHsWzmFjQHXYMdetl9BE0wPEnZ1a9JuBHN9J336uru0muBDSJyNFtFSy6zBGeOGl32NyomLdeBFHD-8fikD6PFcdyD-w5uGNZaXXRZ6j23TfpE3RPqD-j-sxypMW2qoFouW3igQ8sT38OqloBTLAJgNrp9hW8S5kZkcTMtQ1g"
		}
	},
	"request": {
		"type": "IntentRequest",
		"requestId": "amzn1.echo-api.request.9c22ee2f-3ebb-42b2-aefa-f5faaecd8bb1",
		"locale": "en-US",
		"timestamp": "2021-04-09T21:18:03Z",
		"intent": {
			"name": "GetDirectionsTo",
			"confirmationStatus": "NONE",
			"slots": {
				"tocity": {
					"name": "tocity",
					"value": "thane",
					"resolutions": {
						"resolutionsPerAuthority": [
							{
								"authority": "AlexaEntities",
								"status": {
									"code": "ER_SUCCESS_MATCH"
								},
								"values": [
									{
										"value": {
											"name": "Thāne",
											"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-19344532714781"
										}
									},
									{
										"value": {
											"name": "Thane",
											"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-12249246731783"
										}
									},
									{
										"value": {
											"name": "Thāne",
											"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-27204322862726"
										}
									},
									{
										"value": {
											"name": "Thane, Alaska",
											"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-44779329051175"
										}
									},
									{
										"value": {
											"name": "Thanë",
											"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-57329223490702"
										}
									}
								]
							}
						]
					},
					"confirmationStatus": "NONE",
					"source": "USER",
					"slotValue": {
						"type": "Simple",
						"value": "thane",
						"resolutions": {
							"resolutionsPerAuthority": [
								{
									"authority": "AlexaEntities",
									"status": {
										"code": "ER_SUCCESS_MATCH"
									},
									"values": [
										{
											"value": {
												"name": "Thāne",
												"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-19344532714781"
											}
										},
										{
											"value": {
												"name": "Thane",
												"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-12249246731783"
											}
										},
										{
											"value": {
												"name": "Thāne",
												"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-27204322862726"
											}
										},
										{
											"value": {
												"name": "Thane, Alaska",
												"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-44779329051175"
											}
										},
										{
											"value": {
												"name": "Thanë",
												"id": "https://ld.amazonalexa.com/entities/v1/1571475417946-57329223490702"
											}
										}
									]
								}
							]
						}
					}
				}
			}
		}
	}
}

Json Output:

{
	"body": {
		"version": "1.0",
		"response": {
			"outputSpeech": {
				"type": "PlainText",
				"text": "Sorry, I do not know your address. Please check the settings in the Alexa app."
			},
			"card": {
				"type": "Simple",
				"title": "Google Maps error",
				"content": "Sorry, I do not know your address. Please check the settings in the Alexa app."
			},
			"reprompt": {
				"outputSpeech": {
					"type": "PlainText"
				}
			},
			"shouldEndSession": true,
			"type": "_DEFAULT_RESPONSE"
		},
		"sessionAttributes": {}
	}
}

Thanks,
Will be waiting for your response.

@ndg63276
Copy link
Owner

ndg63276 commented Apr 9, 2021

Does it work if you ask an Alexa device though? I get that error through the simulator, but if I ask my Echo, she tells me the correct info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants