Skip to content

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

Open
MaltronCraft wants to merge 2 commits into
alexa-samples:masterfrom
MaltronCraft:MaltronCraft-AlexaResponse.js-fix
Open

Fix for AlexaResponse.js failing on line 58:62#13
MaltronCraft wants to merge 2 commits into
alexa-samples:masterfrom
MaltronCraft:MaltronCraft-AlexaResponse.js-fix

Conversation

@MaltronCraft
Copy link
Copy Markdown

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
Copy Markdown

panw commented May 22, 2020

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

@YiddishNinja what are your thoughts?

'use strict';

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

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