-
Notifications
You must be signed in to change notification settings - Fork 733
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
serviceClientFactory was undefined #356
Comments
Hi @mehtanilay10, what package do you use? If you want to use default apiClient, you can use StandardSkillBuilder which is in ask-sdk package and you don't need to set anything in StandardSkillBuilder. If you want to use your own apiClient, you can use CustomSkillBuilder which is in ask-sdk-core package. In CustomSkillBuilder, there is a withApiClient() method which allows you to set your apiClient. |
I have used v2 packages only. So what should I pass here? alexa-skills-kit-sdk-for-nodejs/ask-sdk-v1adapter/lib/adapter.ts Lines 192 to 196 in fdf4a04
|
@mehtanilay10 Are you using Standard ASK SDK Distribution or Core SDK Module Only in this link. |
I have used only ask-sdk-core |
If you want to use default apiClient, try
|
@TianTXie Thanks for your help. |
can someone post code if you are using the standard skill builder for accessing the apiclient. I'm trying to get the timezone of the device. I need to use the standard skill builder, not the custom one because i use all the helper methods for dynamodb that comes with standard. I have yet to find an example of how to get the device time zone using standard |
@dante2365 the code located here will work. When you use |
thank you @franklin-lobb. That worked. Every example I found was with the custom skill builder so when I included the .withApiClient I got the function does not exist error. |
Thanks, this solution worked for me too! |
I have read the document on Service client and tried to Address via it.
https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki/Alexa-Service-Clients
But I got serviceClientFactory was undefined in handlerInput.
As per this below condition, I have to set ApiClient value.
alexa-skills-kit-sdk-for-nodejs/ask-sdk-core/lib/skill/Skill.ts
Lines 80 to 86 in fdf4a04
For this, I am used withApiClient() of CustomSkillBuilder. So i am used below snippet.
Expected Behavior
How to solve this issue? Is there anything i missed?
Current Behavior
Currently it generate below error:
Context
Unable to obtain address of user, due to serviceClientFactory.
Your Environment
Node.js and NPM Info
The text was updated successfully, but these errors were encountered: