Closed Voice-First-AI closed 4 years ago
It appears the catch
statement does not catch the error message....
I updated my code to:
async FindMyRealtimeLocationIntent() {
try {
const address = await this.$alexaSkill.$user.getDeviceAddress();
this.ask("YOU DID IT!")
console.log(address);
} catch(error) {
if (error.code === 'NO_USER_PERMISSION') {
this.$alexaSkill.showAskForAddressCard()
.tell(`Please grant access to your address in the Alexa app.`);
}
this.ask("YOU DID IT!" + error)
}
},
Why would I receive an error: Error: Access denied with reason: FORBIDDEN
Now I am printing error.code
I receive the error: NO_SKILL_PERMISSION
How do I overcome this barrier?
Is there a permission I can add to project.js
?
Is this step documented in Jovo Documentation?
If not, can we add this to Jovo Documentation?
I have updated the documentation and
created a pull request to be more helpful....
View Merge Request: https://github.com/jovotech/jovo-framework/compare/master...VoiceFirstTech:patch-4
We can close this issue once the documentation is updated.
Awesome! Create a Pull Request and we will merge it immediately.
Hi @VoiceFirstTech!
Good catch and addition! I was looking at the diff you linked above ( I do not yet see a PR as indicated ) and had a couple notes:
Could you also add info about the country/postal code permissions in the section prior to this? They are alexa:devices:all:address:country_and_postal_code:read
The geolocation section below this has a section with permissions. Could we follow the same style with these two additions for consistency?
Closing this due to inactivity
I'm submitting a...
Expected Behavior
Documentation for Get Device Address should return valid speech.
Current Behavior
When
this.$user.getDeviceAddress()
is used, following Jovo documentation, there is no response and the session ends.Error log
JOVO DOCUMENTATION (http://bit.ly/2JStE91)
OUR CODE (
src/app.js
)JOVO DEBUGGER
Your Environment