# File lib/fog/compute/brightbox.rb, line 100 def request(params) begin get_oauth_token if @oauth_token.nil? response = authenticated_request(params) rescue Excon::Errors::Unauthorized => e get_oauth_token response = authenticated_request(params) end unless response.body.empty? response = JSON.parse(response.body) end end