title: Ipfs module not working with firebase functions
body: <p>I am trying to use firebase cloud functions to store data on IPFS. I was able to install ipfs-mini package.</p>
  
  <pre class="lang-js prettyprint-override"><code>const IPFS = require('ipfs-mini');
  const ipfs = new IPFS({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' });
  
  ipfs.add("testdata")
      .then(function(result){               
        response.send(result);
      })  
      .catch(function (err) {            
        response.send(err)
      })
  </code></pre>
  
  <p>However I get error as in screenshot </p>
  
  <p><a href="https://i.stack.imgur.com/HZmUn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HZmUn.png" alt=""></a></p>