title: twitter error on rails console while using twurl api
body: <p>I am trying to upload a media on twitter with below command from my rails console .</p>
  
  <blockquote>
    <p>ActiveSupport::JSON.decode(<code>twurl -H upload.twitter.com
    "/1.1/media/upload.json" -d
    "command=APPEND&amp;media_id=1037245714940747777&amp;segment_index=0" --file
    /home/administrator/Downloads/s.mp4 --file-field "media" -t</code>) and
    Getting the error-: JSON::ParserError: 822: unexpected token at ''</p>
  </blockquote>
  
  <p>I am getting error of JSON parsning, Please help me to solve this problem.</p>