title: #<RestClient::NotFound: 404 Not Found> error + rest-client gem
body: <p>I'm getting the below error for rest-client gem while file uploading. Gem is installed properly.</p>
  
  <pre><code>require 'rest-client'
  class SimpleService
  include RestClient
  
  // other methods //
  
  def update_request method, opts ={}
          headers = set_request_header
          payload = opts
          url = @base_uri + url_path(method)
  
          begin
              # RestClient.put url, payload, headers
              RestClient::Request.execute(method: :put, url: url,
                              payload: payload, headers: headers)
          rescue RestClient::ExceptionWithResponse =&gt; e
              byebug
              e.response
          end                    
      end
  end
  </code></pre>
  
  <p>parameters for the rest client is </p>
  
  <pre><code>headers is {"Authorization"=&gt;"ApiKey SHctT2tSNE94Ijp0cnVlfQ.4ylSKUJurtqCqfiNcm2vRROyHyWjJxWi0WFLsABLY74", "content_type"=&gt;"json"} 
  
      url is "https://sandbox.test-simplexcc.com/v2/users/604776/kyc"
  
  payload is &lt;ActionController::Parameters {"identity_kyc_docunt_1"=&gt;#&lt;ActionDispatch::Http::UploadedFile:0x007fe2183a6d10 @tempfile=#&lt;Tempfile:/var/folders/95/z56d5kd10_sb7s82b982fpjw0000gn/T/RackMultipart20180628-1288-1oncnou.png&gt;, @original_filename="35155-6-adventure-time-picture.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"identity_kyc_docunt_1\"; filename=\"35155-6-adventure-time-picture.png\"\r\nContent-Type: image/png\r\n"&gt;, "controller"=&gt;"simplex", "action"=&gt;"update_kyc"} permitted: true&gt;
  </code></pre>
  
  <p>I'm using the postman client call my rest end points. for every request im getting the same error.</p>
  
  <pre><code>(byebug) e
  #&lt;RestClient::NotFound: 404 Not Found&gt;
  </code></pre>
  
  <p>I tried other rest client gem calls to invoke the endpoints. for everything i'm getting the same error.</p>
  
  <p>Thanks
  Ajith</p>