title: Alexa API call is not returning anything
body: <p>Hello and good evening all!</p>
  
  <p>I have setup an API call in my Alexa app and I'm trying to get a basic understanding of why it isn't working with the URL/response I have.</p>
  
  <p>I know the API call works because when I replace 'host' with 'api.icndb.com' and 'path' with '/jokes/random' it works (when I access the response data using response.value.quote).</p>
  
  <p>My API call will not work with the URL I have provided or maybe perhaps it's the way I'm trying to access the data.
  The API provides data in an array with objects nested inside of it which is different from the aforementioned URL.</p>
  
  <p>To see what I'm referring to, here is the URL for the sample Alexa skill that I built my app from with the 'api.icndb.com' API I'm referring to.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>/* eslint-disable  func-names */
  /* eslint-disable  no-console */
  
  const Alexa = require('ask-sdk');
  var https = require('https')
  
  
  const LaunchRequestHandler = {
    canHandle(handlerInput) {
     const request = handlerInput.requestEnvelope.request;
     return request.type === 'LaunchRequest'
    },
    handle(handlerInput) {
      return handlerInput.responseBuilder
        .speak('Welcome to Simpson Speak')
        .getResponse();
    }
  };
  
  
  const GetQuoteHandler = {
    canHandle(handlerInput) {
      const request = handlerInput.requestEnvelope.request;
      return request.type === 'IntentRequest' &amp;&amp; request.intent.name === 'GetQuote';
    },
    async handle(handlerInput) {
       const response = await httpGet();
  
       console.log(response);
  
       return handlerInput.responseBuilder
        .speak(response[0].author)
        .getResponse()
  
    }
  };
  
  function httpGet(){
    return new Promise(((resolve, reject) =&gt; {
      var options = {
        host: 'thesimpsonsquoteapi.glitch.me',
        port: 443,
        path: '/quotes',
        method: 'GET',
      };
      const request = https.request(options, (response) =&gt; {
        response.setEncoding('utf8');
        let returnData = '';
  
        response.on('data', (chunk)=&gt;{
          returnData += chunk;
        });
        response.on('end',()=&gt;{
          resolve(JSON.parse(returnData));
        });
        response.on('error', (error)=&gt;{
          reject(error);
        });
      });
      request.end();
    }));
  };
  
  const skillBuilder = Alexa.SkillBuilders.standard();
  
  exports.handler = skillBuilder
    .addRequestHandlers(
      LaunchRequestHandler,
      GetQuoteHandler
    )
    .lambda();
  </code></pre>