ask-cli icon indicating copy to clipboard operation
ask-cli copied to clipboard

Remove withCustomerUserAgent() from index.js in Alexa-hosted skills template

Open habuma opened this issue 3 years ago • 1 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request 
[X] Other... Please describe: Remove the call to `withCustomUserAgent()` from the lambda/index.js file in the Alexa-hosted skills template.



## Expected Behavior
The `withCustomUserAgent()` call is optional and generally unnecessary (except for special circumstances, in which the developer can add it themselves). In the interest of simplifying the template, this should not be in the template.

## Current Behavior
(see above)

## Steps to Reproduce (for bugs)
Use `ask new` to create a new Node.js, Alexa-hosted skills project. Observe that in lambda/index.js there is a call to `withCustomUserAgent()` near the end. 

## Possible Solution
Remove the call to `withCustomUserAgent()`.

## Your Environment and Context

* ask-cli version: 2.24.1
* Operating System and version: MacOS 11.6
* Node.js version used for development: 16.6.1
* NPM version used for development: 7.24.1

habuma avatar Oct 27 '21 02:10 habuma

Thank you for the suggestion, I will reach out to the team that owns that template to see if they will change it.

CamdenFoucht avatar Apr 28 '22 18:04 CamdenFoucht

duplicate skill-sample-nodejs-hello-world/issues/43

thanks for filing a issue on the sample skill repository itself.

doiron avatar Jan 20 '23 20:01 doiron