title: I keep getting an error when using the clarifai 'Demographics" model
body: <p><a href="https://i.stack.imgur.com/iqjCc.jpg" rel="nofollow noreferrer">TypeError: Cannot read property 'language' of undefined</a></p>
  <p>The demographics model was working few months ago when I used it as 'Clarifai.DEMOGRAPHICS_MODEL' but now it gives a 404 error for the same. I think now I am supposed to use it as 'Clarifai.Demographics' but it gives the error shown in picture.
  Am I doing something wrong or is it some Clarifai issue? I am relatively new to react programming and just noticed the app that I had made before using 'Clarifai.DEMOGRAPHICS_MODEL' started showing errors suddenly.</p>
  <p>For now, I am just trying to make this work</p>
  <pre><code>const onSubmit = () =&gt; {
      app.models.predict(Clarifai.Demographics, &quot;https://static.independent.co.uk/s3fs-public/thumbnails/image/2015/06/06/15/Chris-Pratt.jpg&quot;)
      .then(res =&gt; console.log(res))
  }
  </code></pre>
  <hr />
  <p><strong>NEW EDIT :</strong></p>
  <p>Finally, now I can retrieve data from clarifai and send it to frontend. Keeping the backend code here for reference if anyone needs.</p>
  <pre><code>--------server.js---------
  const express = require('express')
  const cors = require('cors')
  const posts = require('./demographics.js')
  
  const app = express()
  app.use(cors())
  app.use(express.json())
  
  const PORT = process.env.PORT || 5000
  
  app.post('/data', posts.demographics)
  
  app.listen(PORT, ()=&gt; {
      console.log('Working at port ',PORT)
  })
  
  
  --------demographics.js---------
  const {ClarifaiStub, grpc} = require(&quot;clarifai-nodejs-grpc&quot;);
  const stringify = require('json-stringify-safe');
  
  const demographics = (req,res) =&gt; {
      const stub = ClarifaiStub.grpc()
      const metadata = new grpc.Metadata();
      metadata.set(&quot;authorization&quot;, &quot;Key {My_Key}&quot;);
      stub.PostWorkflowResults(
          {
              workflow_id: &quot;Demographics&quot;,
              inputs: [
                  {data: {image: {url: req.body.input}}}
              ]
          },
  
          metadata,
          (err, response) =&gt; {
              if(response){                
                  const data = stringify(response.results[0].outputs[4].data.regions, null, 2)
                  res.send(data)
              }
              else {
                  console.log(err)
                  res.status(400)
              }
          }
      )
  }
  </code></pre>