title: trying to upload video to instagram form nodejs
body: <p>i am trying to upload video to instagram from a npm module </p>
  
  <p><a href="https://www.npmjs.com/package/instagram-private-api" rel="nofollow noreferrer">https://www.npmjs.com/package/instagram-private-api</a></p>
  
  <p>using the function but it gives me promise rejection error</p>
  
  <pre><code>Upload.video(session,'./path/to/your/video.mp4','./path/to/your/coverImg.jpg')
  .then(function(upload) {
      return Media.configureVideo(session, upload.uploadId, 'akward caption', uploadInfo.durationms);
  })
  .then(function(medium) {
      // we configure medium, it is now visible with caption 
      console.log(medium.params)
  })
  </code></pre>