Skip to content
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

Fix for AlexaResponse.js failing on line 58:62 #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MaltronCraft
Copy link

Issues:
When running directiveDiscovery test on lambda, AlexaResponse.js would fail with the following error:
Response: { "errorType": "TypeError", "errorMessage": "uuid is not a function", "trace": [ "TypeError: uuid is not a function", " at new AlexaResponse (/var/task/alexa/skills/smarthome/AlexaResponse.js:58:62)", " at Runtime.exports.handler (/var/task/index.js:67:19)", " at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)" ] }

Description of changes:

In AlexaResponse I changed line 16 let uuid = require('uuid'); to let uuid = require('uuid-random');
In packages.json I changed line 14 "uuid": ">1.0.0" to "uuid-random": ">1.8.0"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fixed an issue where uuid module would not work. Replaced uuid with uuid-random.
@panw
Copy link

panw commented May 22, 2020

@MaltronCraft thanks for submitting this PR! Looks good to me.

@YiddishNinja what are your thoughts?

@@ -13,7 +13,7 @@

'use strict';

let uuid = require('uuid');
let uuid = require('uuid-change');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be:

let uuid = require('uuid-random');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants