             err =
               error   : "BORED_INSTANCE_ERROR"
               message : "Could not find a bored instance. #{err.message}"
-
             return cb err
 
           url = "#{@_protocol}api2.#{theUrl}/instances/bored"

      err = new Error "No responsive uploaders"
      return cb err

    url = @_protocol + instances[index]
    opts =
      url     : url
      timeout : 3000


  calcSignature: (toSign) ->
    return crypto
      .createHmac("sha1", @_authSecret)
      .update(new Buffer(toSign, "utf-8"))
      .digest "hex"

  _appendForm: (req, params, fields) ->
    jsonParams = @_prepareParams params
