title: FIREBASE WARNING: Invalid query string segment - Warning when deploying simple Firebase Cloud function
body: <p>This morning I started noticing a large amount of <strong>"FIREBASE WARNING: Invalid query string segment"</strong> errors in my functions log. In an attempt to figure out what was going on I ended up making various changes to function and deploying all my cloud functions several times. </p>
  
  <p>While doing this I noticed that I was getting the error on a function that:</p>
  
  <ol>
  <li>Does not have a Firebase Query in it.</li>
  <li>Has not been invoked in months (it's a test function).</li>
  </ol>
  
  <p>This leads me to believe that a change was made Firebase Cloud Functions recently that may be sporadically generating this error on deploy and/or execution of cloud functions regardless of whether the function has anything to do with real time database queries. Has anybody else noticed this error or have any insight into why it is occurring? </p>
  
  <p>Relevant part of my cloud index.js file is as follows (should be enough to replicate the issue):</p>
  
  <pre><code>const cors = require('cors')({origin: true});
  const functions = require('firebase-functions');
  const admin = require('firebase-admin');
  
  const firebaseRef = admin.database().ref();
  const firestoreRef = admin.firestore();
  
  exports.testCloudFunctions = functions.https.onRequest((request, response) =&gt; {
    cors(request, response, () =&gt; {
      const params = request.query;
      console.log(params)
      response.status(200).send({success: true, message: "Test Successful", params: params});
    });
  });
  </code></pre>