
Art W • about 3 years ago
Cannot read property 'getMonetizationServiceClient' of undefined
In my LaunchRequest handler, I am getting an error by following the instructions at https://developer.amazon.com/docs/in-skill-purchase/add-isps-to-a-skill.html#get-products
const LaunchRequestHandler = {
canHandle(handlerInput) {
return handlerInput.requestEnvelope.request.type === 'LaunchRequest';
},
handle(handlerInput) {
const locale = handlerInput.requestEnvelope.request.locale;
const ms = handlerInput.serviceClientFactory.getMonetizationServiceClient();
~~~~ Error handled: TypeError: Cannot read property 'getMonetizationServiceClient' of undefined
Comments are closed.
2 comments
Franklin Lobb • about 3 years ago
check out this blog which discusses that error: https://developer.amazon.com/blogs/alexa/post/a47f25e9-3e87-4afd-b632-ff3b86febcd4/skill-builder-objects-to-customize-or-not-to-customize
Art W • about 3 years ago
Thanks. That works