title: Cannot read property 'protocol' of undefined : axios react
body: <pre><code>const config = {
     headers: { &quot;Content-Type&quot;: &quot;application/octet-stream&quot; }
  }
  
  let files = this.state.files
  let promises = []
  files.map((item ,index) =&gt; {
     promises.push(axios.put(this.props.deal.authURL[index], item, config))
  })
  </code></pre>
  <p>I get this error:</p>
  <blockquote>
  <p>Uncaught (in promise) TypeError: Cannot read property 'protocol' of undefined</p>
  </blockquote>
  <p>My aim is to store all the result of the Axios calls inside promises array. And then use <code>Promise.all()</code> function to resolve all at once. Can't figure why the error is there.</p>
  <p>Any sort of help is appreciated. Thanks</p>