title: Salesforce LWC - Multiple Apex Callout Imperatively Fails
body: <p>I am trying to make multiple callout to Apex imperatively from a FOR loop. But strangely, only first 6 transaction are getting successful. Rest all are failing. There is no mention of any such limits of number of callout from LWC to Apex in Developer Document.</p>
  <p>Reason to follow this approach is each callout will follow a new set of Apex limits.</p>
  <pre class="lang-js prettyprint-override"><code>import { LightningElement, api, wire, track } from 'lwc';
  import insertRecords from '@salesforce/apex/FileUploaderXCtrl.insertRecords';
  
  export default class FileUploadExample extends LightningElement {
  
      file;
      filename;
      filecontent;
      output = [];
      buttonVisible = false;
      position = 0;
  
      get acceptedFormats() {
          return ['.csv'];
      }
  
      uploadFiles(event) {
          console.log('Hey! No of Callouts: -----------&gt;' + this.output.length);
          for (let index = 0; index &lt; this.output.length; index++) {
              console.log('Making Callouts Now! Watch Out --------');
              insertRecords({ jsonObjInput: this.output[index] })
              .then(() =&gt; { console.log('*******\n\nHurray! Its Working....\n\n********'); })
              .catch((error) =&gt; { console.log('Go Home...'); });
              
          }
      }
  
      handleUploadFinished(event) {
          if (event.target.files.length &gt; 0) {
              this.filename = event.target.files[0].name;
              this.file = event.target.files[0];
              var reader = new FileReader();
              var jsonObj = [];
              reader.readAsText(this.file, &quot;UTF-8&quot;);
              reader.onload = (evt) =&gt; {
                  console.log('File Name: -----------&gt;' + this.filename);
                  this.filecontent = evt.target.result;
                  let rows = this.filecontent.split('\n');
                  let header = rows[0].split(',');
                  rows.shift();
                  console.log('Header: -----------&gt;' + header);
                  rows.forEach(element =&gt; {
                      let data = element.split(',');
                      let obj = {};
                      for (let index = 0; index &lt; header.length; index++) {
                          obj[header[index].trim()] = data[index].trim();
                      }
                      jsonObj.push(obj);
                  });
                  let result = new Array(Math.ceil(jsonObj.length / 10000)).fill().map(_ =&gt; jsonObj.splice(0, 10000));
                  result.forEach(element =&gt; {
                      this.output.push(JSON.stringify(element));
                  });
                  console.log('Apex Input Parameter: -----------&gt;' + this.output);
                  console.log('No of Callouts: -----------&gt;' + this.output.length);
              }
              reader.onloadend = (evt) =&gt; {
                  this.buttonVisible = true;
              }
              reader.onerror = (evt) =&gt; {
                  if (evt.target.error.name == &quot;NotReadableError&quot;) {
                      console.log('An Error Occured Reading this File!!');
                      alert('An Error Occured Reading this File!!');
                  }
              }
          }
      }
  
  }
  </code></pre>