title: Amazon Alexa Smart Home : Unable to discover device
body: <p>I am having an issue in Discovery.</p>
  
  <p>when I discover devices, it does not appear to be calling the Lambda function that I have defined. The Lambda function is configured on the Skill and the event source is configured on the Lambda function.</p>
  
  <p>I have check from monitoring logs that lambda function is not getting called when I try to discover devices from Alexa interface.</p>
  
  <p>If I try to test same using lambda test interface it gives me the response.</p>
  
  <p>Sample request being made from lambda test interface</p>
  
  <pre><code>{
      "header": {
          "messageId": "6d6d6e14-8aee-473e-8c24-0d31ff9c17a2",
          "name": "DiscoverAppliancesRequest",
          "namespace": "Alexa.ConnectedHome.Discovery",
          "payloadVersion": "2"
      },
      "payload": {
          "accessToken": "some string"
      }
  }
  </code></pre>
  
  <p>Response I got from my API endpoint is as below</p>
  
  <pre><code> {
    "header": {
      "messageId": "6d6d6e14-8aee-473e-8c24-0d31ff9c17a2",
      "name": "DiscoverAppliancesResponse",
      "namespace": "Alexa.ConnectedHome.Discovery",
      "payloadVersion": "2"
    },
    "payload": {
      "discoveredAppliances": [
        {
          "actions": [
            "incrementPercentage",
            "decrementPercentage",
            "setPercentage",
            "turnOn",
            "turnOff"
          ],
          "additionalApplianceDetails": {
            "serialNumber": "CRED DEVICE 1456842949167",
            "firmwareVersion": "0.7.1.1"
          },
          "applianceId": "d4cab60d-b2e5-4d0f-ae50-c566e0de26ce",
          "friendlyDescription": "Den",
          "friendlyName": "Den",
          "isReachable": true,
          "manufacturerName": "CredSmartLabs",
          "modelName": "H+1140-87-",
          "version": "1"
        }
      ]
    }
  }
  </code></pre>