title: Error downloading from firebase Storage in a Cloud Function
body: <p>I have the following code to download a .txt file from a firebase storage:</p>
  
  <pre><code>    const objectName = `${isla}/${localidad}/${zona}/map.txt`;
      const file = storage.bucket(config["storageBucket"]).file(objectName);
      const tmpFilePath = path.join(os.tmpdir(), "map.txt");
      await file.download({destination: tmpFilePath});
  </code></pre>
  
  <p>but it throws the error:</p>
  
  <pre><code>    Error: _read() is not implemented at Duplex.Readable._read 
      (_stream_readable.js:551:22) at Duplex.Readable.read 
      (_stream_readable.js:442:10) at resume_ (_stream_readable.js:822:12) at 
      _combinedTickCallback (internal/process/next_tick.js:139:11) at 
      process._tickDomainCallback (internal/process/next_tick.js:219:9)
  </code></pre>
  
  <p>I've used this method before with no problems, not sure what I've done wrong as I'm not trying to set up a stream. Any help is appreciated, thanks.</p>