title: Nodejs NetSuite-rest module : Invalid content in the request body
body: <p>I am getting this error while connecting Nodejs app to NetSuite web services :
  StatusCodeError: 400 - &quot;{&quot;type&quot;:&quot;https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1&quot;,&quot;title&quot;:&quot;Bad Request&quot;,&quot;status&quot;:400,&quot;o:errorDetails&quot;:[{&quot;detail&quot;:&quot;Invalid content in the request body.&quot;,&quot;o:errorCode&quot;:&quot;INVALID_CONTENT&quot;}]}\n&quot;</p>
  <pre><code>var dotenv = require(&quot;dotenv&quot;);
  dotenv.config();
  
  console.log('Token', process.env.token);
  console.log('Token Secret', process.env.token_secret);
  
  var NsApiWrapper = require('netsuite-rest');
  NsApi = new NsApiWrapper({
     consumer_key: process.env.consumer_key,
     consumer_secret_key: process.env.consumer_secret_key,
     token: process.env.token,
     token_secret: process.env.token_secret,
     base_url: &quot;https://xxxx.suitetalk.api.netsuite.com&quot;,
     realm: process.env.realm,
   });
  
     NsApi.request({
         path: 'query/v1/suiteql?limit=5',
         method: &quot;POST&quot;,
         body: `{
        &quot;q&quot;: 
             &quot;SELECT 
             id, companyName, email, dateCreated
             FROM accounts&quot;
         }`
        })
         .then(response =&gt; console.log(response))
         .catch((err) =&gt; console.log(err));
  </code></pre>