title: Problem with post request in Node.js in alexa skill
body: <p>I'm trying to do a very simple post request to switch on my Sonoff but when I test it, alexa say that there's somthing wrong with response. I don't know what's exactly in the response. Below my code:
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>const Alexa = require('ask-sdk-core');
  var http = require('http');
  
  const HelloWorldIntentHandler = {
      canHandle(handlerInput) {
          return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest' 
              || Alexa.getRequestType(handlerInput.requestEnvelope) === 'IntentRequest'
              &amp;&amp; Alexa.getIntentName(handlerInput.requestEnvelope) === 'HelloWorldIntent';
      },
        async handle(handlerInput) {
          let speakOutput = "Defaul message"  
          const response = await httpCall();
          
          console.log(response);
          speakOutput = "OK";
              return speakOutput;
          }
  };
  
  function httpCall() {
    return new Promise(((resolve, reject) =&gt; {
      var options = {
          host: '192.168.X.XXX',
          port: 8081,
          path: '/zeroconf/switch',
          method: 'POST',
          json: {"deviceid":"","data":{"switch":"on"}}
      };
      
      const request = http.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();
    }));
  }</code></pre>
  </div>
  </div>
  </p>