title: GMT uncaughtException: Cannot read property 'send' of undefined Node js
body: <p>My controller gets the response value but when i try to send the response, it throws error. The console.log of data gives the json value.</p>
  <blockquote>
  <p>GMT uncaughtException: Cannot read property 'send' of undefined</p>
  </blockquote>
  <pre><code>export const countController = {  
      countFetch: async (req, res) =&gt; {   
          await count((data, res) =&gt; {   
              res.send(data);
          })
      }
  }
  </code></pre>
  <p>Please advise on where i did wrong. Thank you</p>