title: IBM Watson Natural Language Understanding - Too Many Request Error
body: <p>I am using IBM Watson Natural Language Understanding Service via Node SDK for Text Analysis. I have an Array of sentences with length nearly 20 to 30. When I tried to iterate through the Array and Call NLU Analyze API I am getting <code>Error : Too Many Request</code>.</p>
  
  <p>There is no API available for Bulk process of text analysis and I don't see any limit in NLU Service Documentation. I am using Standard Plan.</p>
  
  <p>Is there any way to get rid of this error? I want to analyze an Array of sentences.</p>
  
  <p>Error Log :</p>
  
  <pre><code>Error: Too Many Requests
  at Request._callback (/home/vcap/app/node_modules/watson-developer-cloud/lib/requestwrapper.js:99:21)
  at Request.self.callback (/home/vcap/app/node_modules/request/request.js:186:22)
  at emitTwo (events.js:126:13)
  at Request.emit (events.js:214:7)
  at Request.&lt;anonymous&gt; (/home/vcap/app/node_modules/request/request.js:1163:10)
  at emitOne (events.js:116:13)
  at Request.emit (events.js:211:7)
  at IncomingMessage.&lt;anonymous&gt; (/home/vcap/app/node_modules/request/request.js:1085:12)
  at Object.onceWrapper (events.js:313:30)
  at emitNone (events.js:111:20)
  at IncomingMessage.emit (events.js:208:7)
  at endReadableNT (_stream_readable.js:1056:12)
  at _combinedTickCallback (internal/process/next_tick.js:138:11)
  at process._tickCallback (internal/process/next_tick.js:180:9)
  </code></pre>
  
  <h2>Update:</h2>
  
  <p>Adding Source Code :</p>
  
  <pre><code>segmentList.forEach((segment) =&gt; {
      var params = {
          text: segment,
          features: {
              keywords: {
                  sentiment: false
              },
              sentiment: {
                  document: true
              }
          }
      };
      logger.info("Analyse Segment : " + segment);
      return new Promise((resolve) =&gt; {
          NLUService.analyze(params, (err, data) =&gt; {
              if (err != null) {
                  logger.error(err.stack);
              }
              ctr += 1;
              // Inserting data.sentiment.document.score to Database   
              .
              .
              .           
              if (ctr == callSegments.length)
                  resolve();
          });
      }).then(() =&gt; resolve());
  });
  </code></pre>