title: Firebase Functions emulator lost connection to Firestore
body: <p>I have a setup, where I can emulate my Cloud Functions locally and they access my Firestore database. It used, to work well for development and testing, but recently it has lost connection to the Firestore database.</p>
  
  <p>I was wondering if anyone else have had this problem or have an idea, how to fix it?</p>
  
  <p>Since I don't understand, what changed, here's a list of things I tried and observed:</p>
  
  <ol>
  <li>I have updated firebase-tools, firebase-admin and firebase-functions
  to latest versions </li>
  <li>I store my GOOGLE_APPLICATION_CREDENTIALS in a
  json file on my computer and running <code>firebase emulators:start</code>
  starts the server up and serves my functions just fine.  </li>
  <li>But, when the functions request the database, it doesn't throw errors, but
  simply return empty result sets. </li>
  <li>If I add new documents to the database in a
  function and then query the collection in same function, I get the
  newly created documents. So this make me think, that I have landed
  in some sort of testing mode?</li>
  </ol>
  
  <p>Sorry about the lack of code, but I don't really know where to start in of these "it used to be working" situations...</p>