Closed guruprasaad123 closed 4 years ago
Hi @guruprasaad123 ,
Sorry for responding late. I fetch out your code base and found some issues:
const directiveServiceClient = handlerInput.serviceClientFactory.getDirectiveServiceClient();
can not return expected directiveServiceClient as serviceClientFactory is undefined. To solve this problem, you could register our DefaultApiClient to your custom skill builder by following
exports.handler = Alexa.SkillBuilders.custom()
.addRequestHandlers(
LaunchRequestHandler,
HelloWorldIntentHandler,
HelpIntentHandler,
CancelAndStopIntentHandler,
FallbackIntentHandler,
SessionEndedRequestHandler,
IntentReflectorHandler)
.addErrorHandlers(
ErrorHandler)
.addRequestInterceptors(
LocalisationRequestInterceptor)
.withApiClient(new Alexa.DefaultApiClient()) // The missing part
.withCustomUserAgent('sample/hello-world/v1.2')
.lambda();
Could you please try above suggestions and see if the issue still exist ?
Thanks, Shen
Also, from the error message you provided. I guess you copy the request body from somewhere(maybe the developer console) and create a new lambda test event to test your lambda code. If that is the case, you probably need to use the console to get the latest request and then update the lambda test event.
Close for now, feel free to reopen if issues still exist
I'm submitting a...
Expected Behavior
As mentioned this article on Progressive response . I have implemented my code to send progressive response.
DirectiveService to loader response
Sending progressive response while fetching GET response ( Intent Handler )
Current Behavior
Instead of sending the progressive Response as mentioned in the article
am getting this below mentioned Error :
Possible Solution
For now am unable to deduce an solution yet.
Steps to Reproduce (for bugs)
Run the following code in Lambda (Nodejs10.x / us-east-1).
Context
Your Environment
Node.js and NPM Info