<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MirrorMirrorOnTheWallSkill - Lambda Response Service Simulator Error]]></title><description><![CDATA[<p dir="auto">This is a copy of an Issue I created on the MirrorMirrorOnTheWallSkill Github page.</p>
<p dir="auto">It seems that there are a few other issues addressing this issue that don’t have fixes, so I’d figure I’d post my issue with as a detailed report. The Lambda Response from the service simulator in the Skill test returns the following error.</p>
<p dir="auto"><code>The  remote endpoint could not be called, or the response it returned was invalid.</code></p>
<p dir="auto">My lambda request is as follows with a few fields omitted:</p>
<pre><code>{
  "session": {
    "new": true,
    "sessionId": "MY-SESSION-ID",
    "application": {
      "applicationId": "MY-APP-ID"
    },
    "attributes": {},
    "user": {
      "userId": "MY-USER-ID"
    }
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "EdwRequestId.486a3b43-cf13-46c0-a696-cfc9ba39725a",
    "intent": {
      "name": "MirrorMirrorHelloIntent",
      "slots": {}
    },
    "locale": "en-US",
    "timestamp": "2018-01-23T03:04:11Z"
  },
  "context": {
    "AudioPlayer": {
      "playerActivity": "IDLE"
    },
    "System": {
      "application": {
        "applicationId": "MY-CORRECT-APP-ID"
      },
      "user": {
        "userId": "MY-USER-ID"
      },
      "device": {
        "supportedInterfaces": {}
      }
    }
  },
  "version": "1.0"
}
</code></pre>
<p dir="auto">Diving further into the Invocation Logs in AWS lambda (as seen through CloudWatch), I get the following error stack trace:</p>
<p dir="auto">module initialization error: Error<br />
at new DeviceClient (/var/task/node_modules/aws-iot-device-sdk/device/index.js:445:13)<br />
at Object.DeviceClient [as device] (/var/task/node_modules/aws-iot-device-sdk/device/index.js:216:14)<br />
at Object.app.setup (/var/task/MirrorMirror.js:11:23)<br />
at Object. (/var/task/index.js:21:14)<br />
at Module._compile (module.js:570:32)<br />
at Object.Module._extensions…js (module.js:579:10)<br />
at Module.load (module.js:487:32)<br />
at tryModuleLoad (module.js:446:12)<br />
at Function.Module._load (module.js:438:3)<br />
at Module.require (module.js:497:17)</p>
<p dir="auto">On the last bit of the exception in /node_modules/aws-iot-device-sdk/device/index.js, the error that is being throw is from</p>
<pre><code>if (isUndefined(option.host)) {
    throw new Error(exceptions.INVALID_CONNECT_OPTIONS);
}
</code></pre>
<p dir="auto">Perhaps this can offer some insight as to where I’m going wrong here.</p>
<p dir="auto">I feel that there are many users here like myself who are still struggling to get past this point, so any help is greatly appreciated!</p>
]]></description><link>https://forum.magicmirror.builders/topic/6348/mirrormirroronthewallskill-lambda-response-service-simulator-error</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 14:28:44 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6348.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Jan 2018 03:38:10 GMT</pubDate><ttl>60</ttl></channel></rss>