title: ' "length": 147, "severity": "ERROR" ' error while using pg and node.js
body: <p>I am using node.js and postgresql. On my local I can create records from the admin but on production I am getting the following error:</p>
  
  <pre><code>{ "name": "error", "length": 147, "severity": "ERROR"
  </code></pre>
  
  <p>I am unable to find the reason for the same. </p>
  
  <p>I am calling the following API for saving records:</p>
  
  <pre><code>saveTopic = function (req, res) {
    logsInConsole(req);
  
    db.Topic
      .create({
        topic_name: req.body.topic_name,
        topic_category: req.body.topic_category
      })
      .success(function(result){
        res.redirect('/topics');
      }).error(function(error){
          res.send('Failed to save Topic. Something went wrong. Here is the error: ');
          res.send(error);
      });
  };
  </code></pre>
  
  <p>So when I try to create the record, it redirects to <code>'/saveTopic'</code> url where I can see the error.</p>
  
  <p>Any help would be much appreciated.Thanks</p>