Skip to content

Instantly share code, notes, and snippets.

@sheldonbaker
Created September 9, 2015 20:57
Show Gist options
  • Save sheldonbaker/f897b19d5828fc727162 to your computer and use it in GitHub Desktop.
Save sheldonbaker/f897b19d5828fc727162 to your computer and use it in GitHub Desktop.
** [Bugsnag] Notification to https://notify.bugsnag.com finished, response was 200, payload was {"apiKey":"eb0b9919e0100230f713e4d7e4f6e933","notifier":{"name":"Ruby Bugsnag Notifier","version":"2.8.12","url":"http://www.bugsnag.com"},"events":[{"app":{"version":null,"releaseStage":"development","type":"rails"},"context":"explorees#index","user":{"id":1594,"email":"micah+222@lateral.ly","profile_type":"FirmUser","profile_name":"Lateral.ly Recruiting"},"payloadVersion":"2","exceptions":[{"errorClass":"RuntimeError","message":"wtf","stacktrace":[{"inProject":true,"lineNumber":17,"code":{"14":" private","15":"","16":" def collection","17":" raise 'wtf'","18":" @query = ExploreeFinder.new(params, current_user).finder","19":" @query.merge!(super)","20":" if ordered_by_association?"},"file":"app/controllers/explorees_controller.rb","method":"collection"},{"inProject":true,"lineNumber":60,"code":{"57":" end","58":"","59":" def index","60":" respond_with collection","61":" end","62":"","63":" def show"},"file":"app/controllers/concerns/resourceful_controller.rb","method":"index"},{"lineNumber":4,"code":{"1":"module ActionController","2":" module ImplicitRender","3":" def send_action(method, *args)","4":" ret = super","5":" default_render unless performed?","6":" ret","7":" end"},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/implicit_render.rb","method":"send_action"},{"lineNumber":198,"code":{"195":" # Notice that the first argument is the method to be dispatched","196":" # which is *not* necessarily the same as the action name.","197":" def process_action(method_name, *args)","198":" send_action(method_name, *args)","199":" end","200":"","201":" # Actually call the method associated with the action. Override"},"file":"gems/actionpack-4.2.0/lib/abstract_controller/base.rb","method":"process_action"},{"lineNumber":10,"code":{"7":" # Before processing, set the request formats in current controller formats.","8":" def process_action(*) #:nodoc:","9":" self.formats = request.formats.map(&:ref).compact","10":" super","11":" end","12":"","13":" # Check for double render errors and set the content_type after rendering."},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/rendering.rb","method":"process_action"},{"lineNumber":20,"code":{"17":" # process_action callbacks around the normal behavior.","18":" def process_action(*args)","19":" run_callbacks(:process_action) do","20":" super","21":" end","22":" end","23":""},"file":"gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb","method":"block in process_action"},{"lineNumber":117,"code":{"114":" class End","115":" def call(env)","116":" block = env.run_block","117":" env.value = !env.halted && (!block || block.call)","118":" env","119":" end","120":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":117,"code":{"114":" class End","115":" def call(env)","116":" block = env.run_block","117":" env.value = !env.halted && (!block || block.call)","118":" env","119":" end","120":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting"},{"lineNumber":151,"code":{"148":" target.send :halted_callback_hook, filter","149":" end","150":" end","151":" next_callback.call env","152":" }","153":" end","154":" private_class_method :halting_and_conditional"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":151,"code":{"148":" target.send :halted_callback_hook, filter","149":" end","150":" end","151":" next_callback.call env","152":" }","153":" end","154":" private_class_method :halting_and_conditional"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting_and_conditional"},{"lineNumber":151,"code":{"148":" target.send :halted_callback_hook, filter","149":" end","150":" end","151":" next_callback.call env","152":" }","153":" end","154":" private_class_method :halting_and_conditional"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":151,"code":{"148":" target.send :halted_callback_hook, filter","149":" end","150":" end","151":" next_callback.call env","152":" }","153":" end","154":" private_class_method :halting_and_conditional"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting_and_conditional"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":169,"code":{"166":" target.send :halted_callback_hook, filter","167":" end","168":" end","169":" next_callback.call env","170":" }","171":" end","172":" private_class_method :halting"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"block in halting"},{"lineNumber":92,"code":{"89":" else","90":" runner = callbacks.compile","91":" e = Filters::Environment.new(self, false, nil, block)","92":" runner.call(e).value","93":" end","94":" end","95":""},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":92,"code":{"89":" else","90":" runner = callbacks.compile","91":" e = Filters::Environment.new(self, false, nil, block)","92":" runner.call(e).value","93":" end","94":" end","95":""},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"_run_callbacks"},{"lineNumber":734,"code":{"731":"","732":" module_eval <<-RUBY, __FILE__, __LINE__ + 1","733":" def _run_#{name}_callbacks(&block)","734":" _run_callbacks(_#{name}_callbacks, &block)","735":" end","736":" RUBY","737":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"_run_process_action_callbacks"},{"lineNumber":81,"code":{"78":" # save","79":" # end","80":" def run_callbacks(kind, &block)","81":" send \"_run_#{kind}_callbacks\", &block","82":" end","83":"","84":" private"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"run_callbacks"},{"lineNumber":19,"code":{"16":" # Override AbstractController::Base's process_action to run the","17":" # process_action callbacks around the normal behavior.","18":" def process_action(*args)","19":" run_callbacks(:process_action) do","20":" super","21":" end","22":" end"},"file":"gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb","method":"process_action"},{"lineNumber":29,"code":{"26":"","27":" private","28":" def process_action(*args)","29":" super","30":" rescue Exception => exception","31":" request.env['action_dispatch.show_detailed_exceptions'] ||= show_detailed_exceptions?","32":" rescue_with_handler(exception) || raise(exception)"},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/rescue.rb","method":"process_action"},{"lineNumber":31,"code":{"28":" ActiveSupport::Notifications.instrument(\"start_processing.action_controller\", raw_payload.dup)","29":"","30":" ActiveSupport::Notifications.instrument(\"process_action.action_controller\", raw_payload) do |payload|","31":" result = super","32":" payload[:status] = response.status","33":" append_info_to_payload(payload)","34":" result"},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb","method":"block in process_action"},{"lineNumber":164,"code":{"161":"","162":" def instrument(name, payload = {})","163":" if notifier.listening?(name)","164":" instrumenter.instrument(name, payload) { yield payload if block_given? }","165":" else","166":" yield payload if block_given?","167":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/notifications.rb","method":"block in instrument"},{"lineNumber":20,"code":{"17":" def instrument(name, payload={})","18":" start name, payload","19":" begin","20":" yield payload","21":" rescue Exception => e","22":" payload[:exception] = [e.class.name, e.message]","23":" raise e"},"file":"gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb","method":"instrument"},{"lineNumber":164,"code":{"161":"","162":" def instrument(name, payload = {})","163":" if notifier.listening?(name)","164":" instrumenter.instrument(name, payload) { yield payload if block_given? }","165":" else","166":" yield payload if block_given?","167":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/notifications.rb","method":"instrument"},{"lineNumber":30,"code":{"27":"","28":" ActiveSupport::Notifications.instrument(\"start_processing.action_controller\", raw_payload.dup)","29":"","30":" ActiveSupport::Notifications.instrument(\"process_action.action_controller\", raw_payload) do |payload|","31":" result = super","32":" payload[:status] = response.status","33":" append_info_to_payload(payload)"},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb","method":"process_action"},{"lineNumber":250,"code":{"247":" # This will display the wrapped hash in the log file","248":" request.filtered_parameters.merge! wrapped_filtered_hash","249":" end","250":" super","251":" end","252":"","253":" private"},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/params_wrapper.rb","method":"process_action"},{"lineNumber":18,"code":{"15":" # because of queries in middleware or in cases we are streaming","16":" # and it won't be cleaned up by the method below.","17":" ActiveRecord::LogSubscriber.reset_runtime","18":" super","19":" end","20":"","21":" def cleanup_view_runtime"},"file":"gems/activerecord-4.2.0/lib/active_record/railties/controller_runtime.rb","method":"process_action"},{"lineNumber":137,"code":{"134":"","135":" @_response_body = nil","136":"","137":" process_action(action_name, *args)","138":" end","139":"","140":" # Delegates to the class' #controller_path"},"file":"gems/actionpack-4.2.0/lib/abstract_controller/base.rb","method":"process"},{"lineNumber":30,"code":{"27":" # Overwrite process to setup I18n proxy.","28":" def process(*) #:nodoc:","29":" old_config, I18n.config = I18n.config, I18nProxy.new(I18n.config, lookup_context)","30":" super","31":" ensure","32":" I18n.config = old_config","33":" end"},"file":"gems/actionview-4.2.0/lib/action_view/rendering.rb","method":"process"},{"lineNumber":195,"code":{"192":" @_request = request","193":" @_env = request.env","194":" @_env['action_controller.instance'] = self","195":" process(name)","196":" to_a","197":" end","198":""},"file":"gems/actionpack-4.2.0/lib/action_controller/metal.rb","method":"dispatch"},{"lineNumber":13,"code":{"10":"","11":" def dispatch(action, request)","12":" set_response!(request)","13":" super(action, request)","14":" end","15":"","16":" def response_body=(body)"},"file":"gems/actionpack-4.2.0/lib/action_controller/metal/rack_delegation.rb","method":"dispatch"},{"lineNumber":236,"code":{"233":" new.dispatch(name, klass.new(env))","234":" end","235":" else","236":" lambda { |env| new.dispatch(name, klass.new(env)) }","237":" end","238":" end","239":""},"file":"gems/actionpack-4.2.0/lib/action_controller/metal.rb","method":"block in action"},{"lineNumber":73,"code":{"70":" end","71":"","72":" def dispatch(controller, action, env)","73":" controller.action(action).call(env)","74":" end","75":"","76":" def normalize_controller!(params)"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb","method":"call"},{"lineNumber":73,"code":{"70":" end","71":"","72":" def dispatch(controller, action, env)","73":" controller.action(action).call(env)","74":" end","75":"","76":" def normalize_controller!(params)"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb","method":"dispatch"},{"lineNumber":42,"code":{"39":" return [404, {'X-Cascade' => 'pass'}, []]","40":" end","41":"","42":" dispatch(controller, params[:action], req.env)","43":" end","44":"","45":" def prepare_params!(params)"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb","method":"serve"},{"lineNumber":43,"code":{"40":"","41":" req.path_parameters = set_params.merge parameters","42":"","43":" status, headers, body = route.app.serve(req)","44":"","45":" if 'pass' == headers['X-Cascade']","46":" req.script_name = script_name"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb","method":"block in serve"},{"lineNumber":30,"code":{"27":" end","28":"","29":" def serve(req)","30":" find_routes(req).each do |match, parameters, route|","31":" set_params = req.path_parameters","32":" path_info = req.path_info","33":" script_name = req.script_name"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb","method":"each"},{"lineNumber":30,"code":{"27":" end","28":"","29":" def serve(req)","30":" find_routes(req).each do |match, parameters, route|","31":" set_params = req.path_parameters","32":" path_info = req.path_info","33":" script_name = req.script_name"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb","method":"serve"},{"lineNumber":802,"code":{"799":" def call(env)","800":" req = request_class.new(env)","801":" req.path_info = Journey::Router::Utils.normalize_path(req.path_info)","802":" @router.serve(req)","803":" end","804":"","805":" def recognize_path(path, environment = {})"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":12,"code":{"9":" end","10":"","11":" def call(env)","12":" status, headers, body = @app.call(env)","13":" return [status, headers, body] unless pjax?(env)","14":"","15":" headers = HeaderHash.new(headers)"},"file":"gems/rack-pjax-0.8.0/lib/rack/pjax.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":12,"code":{"9":" def call(env)","10":" return @app.call(env) unless Bullet.enable?","11":" Bullet.start_request","12":" status, headers, response = @app.call(env)","13":" return [status, headers, response] if file?(headers) || sse?(response) || empty?(response)","14":"","15":" response_body = nil"},"file":"gems/bullet-4.13.2/lib/bullet/rack.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":50,"code":{"47":"","48":" def traced_call(env)","49":" begin","50":" @app.call(env)","51":" rescue Exception => exception","52":" NewRelic::Agent.logger.debug \"collecting %p: %s\" % [ exception.class, exception.message ]","53":" if !should_ignore_error?(exception, env)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/error_collector.rb","method":"traced_call"},{"lineNumber":55,"code":{"52":" begin","53":" txn = Transaction.start(state, category, opts)","54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":26,"code":{"23":" # [status, headers, response]","24":" def traced_call(env)","25":" notify(:before_call, env)","26":" result = @app.call(env)","27":" notify(:after_call, env, result)","28":" result","29":" end"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/agent_hooks.rb","method":"traced_call"},{"lineNumber":55,"code":{"52":" begin","53":" txn = Transaction.start(state, category, opts)","54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":23,"code":{"20":" SCAN_LIMIT = 50_000","21":"","22":" def traced_call(env)","23":" result = @app.call(env) # [status, headers, response]","24":"","25":" if (NewRelic::Agent.browser_timing_header != \"\") && should_instrument?(env, result[0], result[1])","26":" response_string = autoinstrument_source(result[2], result[1])"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/browser_monitoring.rb","method":"traced_call"},{"lineNumber":55,"code":{"52":" begin","53":" txn = Transaction.start(state, category, opts)","54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":48,"code":{"45":" end","46":"","47":" def traced_call(env)","48":" return @app.call(env) unless /^\\/newrelic/ =~ ::Rack::Request.new(env).path_info","49":" dup._call(env)","50":" end","51":""},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/rack/developer_mode.rb","method":"traced_call"},{"lineNumber":55,"code":{"52":" begin","53":" txn = Transaction.start(state, category, opts)","54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":9,"code":{"6":"","7":" def call(env)","8":" RequestStore.clear!","9":" @app.call(env)","10":" end","11":" end","12":"end"},"file":"gems/request_store-1.0.5/lib/request_store/middleware.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":24,"code":{"21":" end","22":"","23":" def call(env)","24":" status, headers, body = @app.call(env)","25":"","26":" if etag_status?(status) && etag_body?(body) && !skip_caching?(headers)","27":" original_body = body"},"file":"gems/rack-1.6.0/lib/rack/etag.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":25,"code":{"22":" def call(env)","23":" case env[REQUEST_METHOD]","24":" when \"GET\", \"HEAD\"","25":" status, headers, body = @app.call(env)","26":" headers = Utils::HeaderHash.new(headers)","27":" if status == 200 && fresh?(env, headers)","28":" status = 304"},"file":"gems/rack-1.6.0/lib/rack/conditionalget.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":13,"code":{"10":" end","11":"","12":" def call(env)","13":" status, headers, body = @app.call(env)","14":"","15":" if env[REQUEST_METHOD] == HEAD","16":" ["},"file":"gems/rack-1.6.0/lib/rack/head.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":27,"code":{"24":" end","25":" end","26":"","27":" @app.call(env)","28":" end","29":" end","30":"end"},"file":"gems/remotipart-1.2.1/lib/remotipart/middleware.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":27,"code":{"24":" env[\"action_dispatch.request.request_parameters\"] = params","25":" end","26":"","27":" @app.call(env)","28":" end","29":"","30":" private"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":260,"code":{"257":" end","258":"","259":" def call(env)","260":" @app.call(env)","261":" ensure","262":" session = Request::Session.find(env) || {}","263":" flash_hash = env[KEY]"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":225,"code":{"222":"","223":" def context(env, app=@app)","224":" prepare_session(env)","225":" status, headers, body = app.call(env)","226":" commit_session(env, status, headers, body)","227":" end","228":""},"file":"gems/rack-1.6.0/lib/rack/session/abstract/id.rb","method":"context"},{"lineNumber":220,"code":{"217":" end","218":"","219":" def call(env)","220":" context(env)","221":" end","222":"","223":" def context(env, app=@app)"},"file":"gems/rack-1.6.0/lib/rack/session/abstract/id.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":560,"code":{"557":" end","558":"","559":" def call(env)","560":" status, headers, body = @app.call(env)","561":"","562":" if cookie_jar = env['action_dispatch.cookies']","563":" unless cookie_jar.committed?"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":36,"code":{"33":" connection_id = ActiveRecord::Base.connection_id","34":" connection.enable_query_cache!","35":"","36":" response = @app.call(env)","37":" response[2] = Rack::BodyProxy.new(response[2]) do","38":" restore_query_cache_settings(connection_id, enabled)","39":" end"},"file":"gems/activerecord-4.2.0/lib/active_record/query_cache.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":647,"code":{"644":" def call(env)","645":" testing = env['rack.test']","646":"","647":" response = @app.call(env)","648":" response[2] = ::Rack::BodyProxy.new(response[2]) do","649":" ActiveRecord::Base.clear_active_connections! unless testing","650":" end"},"file":"gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":29,"code":{"26":" error = nil","27":" result = run_callbacks :call do","28":" begin","29":" @app.call(env)","30":" rescue => error","31":" end","32":" end"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb","method":"block in call"},{"lineNumber":88,"code":{"85":"","86":" def _run_callbacks(callbacks, &block)","87":" if callbacks.empty?","88":" block.call if block","89":" else","90":" runner = callbacks.compile","91":" e = Filters::Environment.new(self, false, nil, block)"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"call"},{"lineNumber":88,"code":{"85":"","86":" def _run_callbacks(callbacks, &block)","87":" if callbacks.empty?","88":" block.call if block","89":" else","90":" runner = callbacks.compile","91":" e = Filters::Environment.new(self, false, nil, block)"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"_run_callbacks"},{"lineNumber":734,"code":{"731":"","732":" module_eval <<-RUBY, __FILE__, __LINE__ + 1","733":" def _run_#{name}_callbacks(&block)","734":" _run_callbacks(_#{name}_callbacks, &block)","735":" end","736":" RUBY","737":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"_run_call_callbacks"},{"lineNumber":81,"code":{"78":" # save","79":" # end","80":" def run_callbacks(kind, &block)","81":" send \"_run_#{kind}_callbacks\", &block","82":" end","83":"","84":" private"},"file":"gems/activesupport-4.2.0/lib/active_support/callbacks.rb","method":"run_callbacks"},{"lineNumber":27,"code":{"24":"","25":" def call(env)","26":" error = nil","27":" result = run_callbacks :call do","28":" begin","29":" @app.call(env)","30":" rescue => error"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":73,"code":{"70":" @validated = @condition.call","71":" prepare!","72":"","73":" response = @app.call(env)","74":" response[2] = ::Rack::BodyProxy.new(response[2]) { cleanup! }","75":"","76":" response"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":78,"code":{"75":" # GetIp#calculate_ip method will calculate the memoized client IP address.","76":" def call(env)","77":" env[\"action_dispatch.remote_ip\"] = GetIp.new(env, self)","78":" @app.call(env)","79":" end","80":"","81":" # The GetIp class exists as a way to defer processing of the request data"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":84,"code":{"81":" end","82":"","83":" def protected_app_call(env)","84":" @app.call env","85":" rescue Exception => ex","86":" @error_page = @handler.new ex, env","87":" log_exception"},"file":"gems/better_errors-1.1.0/lib/better_errors/middleware.rb","method":"protected_app_call"},{"lineNumber":79,"code":{"76":" when %r{/__better_errors/?\\z}","77":" show_error_page env","78":" else","79":" protected_app_call env","80":" end","81":" end","82":""},"file":"gems/better_errors-1.1.0/lib/better_errors/middleware.rb","method":"better_errors_call"},{"lineNumber":56,"code":{"53":" # @return [Array]","54":" def call(env)","55":" if allow_ip? env","56":" better_errors_call env","57":" else","58":" @app.call env","59":" end"},"file":"gems/better_errors-1.1.0/lib/better_errors/middleware.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":17,"code":{"14":" end","15":"","16":" def call(env)","17":" _, headers, body = response = @app.call(env)","18":"","19":" if headers['X-Cascade'] == 'pass'","20":" body.close if body.respond_to?(:close)"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":30,"code":{"27":" end","28":"","29":" def call(env)","30":" @app.call(env)","31":" rescue Exception => exception","32":" if env['action_dispatch.show_exceptions'] == false","33":" raise exception"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":38,"code":{"35":" instrumenter = ActiveSupport::Notifications.instrumenter","36":" instrumenter.start 'request.action_dispatch', request: request","37":" logger.info { started_request_message(request) }","38":" resp = @app.call(env)","39":" resp[2] = ::Rack::BodyProxy.new(resp[2]) { finish(request) }","40":" resp","41":" rescue Exception"},"file":"gems/railties-4.2.0/lib/rails/rack/logger.rb","method":"call_app"},{"lineNumber":20,"code":{"17":" request = ActionDispatch::Request.new(env)","18":"","19":" if logger.respond_to?(:tagged)","20":" logger.tagged(compute_tags(request)) { call_app(request, env) }","21":" else","22":" call_app(request, env)","23":" end"},"file":"gems/railties-4.2.0/lib/rails/rack/logger.rb","method":"block in call"},{"lineNumber":68,"code":{"65":" delegate :push_tags, :pop_tags, :clear_tags!, to: :formatter","66":"","67":" def tagged(*tags)","68":" formatter.tagged(*tags) { yield self }","69":" end","70":"","71":" def flush"},"file":"gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb","method":"block in tagged"},{"lineNumber":26,"code":{"23":"","24":" def tagged(*tags)","25":" new_tags = push_tags(*tags)","26":" yield self","27":" ensure","28":" pop_tags(new_tags.size)","29":" end"},"file":"gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb","method":"tagged"},{"lineNumber":68,"code":{"65":" delegate :push_tags, :pop_tags, :clear_tags!, to: :formatter","66":"","67":" def tagged(*tags)","68":" formatter.tagged(*tags) { yield self }","69":" end","70":"","71":" def flush"},"file":"gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb","method":"tagged"},{"lineNumber":20,"code":{"17":" request = ActionDispatch::Request.new(env)","18":"","19":" if logger.respond_to?(:tagged)","20":" logger.tagged(compute_tags(request)) { call_app(request, env) }","21":" else","22":" call_app(request, env)","23":" end"},"file":"gems/railties-4.2.0/lib/rails/rack/logger.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":21,"code":{"18":"","19":" def call(env)","20":" env[\"action_dispatch.request_id\"] = external_request_id(env) || internal_request_id","21":" @app.call(env).tap { |_status, headers, _body| headers[\"X-Request-Id\"] = env[\"action_dispatch.request_id\"] }","22":" end","23":"","24":" private"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":22,"code":{"19":" end","20":" end","21":"","22":" @app.call(env)","23":" end","24":"","25":" def method_override(env)"},"file":"gems/rack-1.6.0/lib/rack/methodoverride.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":18,"code":{"15":" FORMAT_STRING = \"%0.6f\"","16":" def call(env)","17":" start_time = Time.now","18":" status, headers, body = @app.call(env)","19":" request_time = Time.now - start_time","20":"","21":" if !headers.has_key?(@header_name)"},"file":"gems/rack-1.6.0/lib/rack/runtime.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":17,"code":{"14":" def call(env)","15":" old, env[FLAG] = env[FLAG], false","16":" @mutex.lock","17":" response = @app.call(env)","18":" body = BodyProxy.new(response[2]) { @mutex.unlock }","19":" response[2] = body","20":" response"},"file":"gems/rack-1.6.0/lib/rack/lock.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":113,"code":{"110":" end","111":" end","112":"","113":" @app.call(env)","114":" end","115":" end","116":"end"},"file":"gems/actionpack-4.2.0/lib/action_dispatch/middleware/static.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":113,"code":{"110":" end","111":"","112":" def call(env)","113":" status, headers, body = @app.call(env)","114":" if body.respond_to?(:to_path)","115":" case type = variation(env)","116":" when 'X-Accel-Redirect'"},"file":"gems/rack-1.6.0/lib/rack/sendfile.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":518,"code":{"515":" if env['SCRIPT_NAME']","516":" env[\"ROUTES_#{routes.object_id}_SCRIPT_NAME\"] = env['SCRIPT_NAME'].dup","517":" end","518":" app.call(env)","519":" end","520":"","521":" # Defines additional Rack env configuration that is added on each call."},"file":"gems/railties-4.2.0/lib/rails/engine.rb","method":"call"},{"lineNumber":164,"code":{"161":" def call(env)","162":" env[\"ORIGINAL_FULLPATH\"] = build_original_fullpath(env)","163":" env[\"ORIGINAL_SCRIPT_NAME\"] = env[\"SCRIPT_NAME\"]","164":" super(env)","165":" end","166":"","167":" # Reload application routes regardless if they changed or not."},"file":"gems/railties-4.2.0/lib/rails/application.rb","method":"call"},{"lineNumber":57,"code":{"54":" if target == self","55":" traced_call(env)","56":" else","57":" target.call(env)","58":" end","59":" rescue => e","60":" NewRelic::Agent.notice_error(e)"},"file":"gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/middleware_tracing.rb","method":"call"},{"lineNumber":17,"code":{"14":" def call(env)","15":" old, env[FLAG] = env[FLAG], false","16":" @mutex.lock","17":" response = @app.call(env)","18":" body = BodyProxy.new(response[2]) { @mutex.unlock }","19":" response[2] = body","20":" response"},"file":"gems/rack-1.6.0/lib/rack/lock.rb","method":"call"},{"lineNumber":15,"code":{"12":" end","13":"","14":" def call(env)","15":" status, headers, body = @app.call(env)","16":" headers = HeaderHash.new(headers)","17":"","18":" if !STATUS_WITH_NO_ENTITY_BODY.include?(status.to_i) &&"},"file":"gems/rack-1.6.0/lib/rack/content_length.rb","method":"call"},{"lineNumber":89,"code":{"86":" end","87":" env[\"REQUEST_PATH\"] ||= [env[\"SCRIPT_NAME\"], env[PATH_INFO]].join","88":"","89":" status, headers, body = @app.call(env)","90":" begin","91":" res.status = status.to_i","92":" headers.each { |k, vs|"},"file":"gems/rack-1.6.0/lib/rack/handler/webrick.rb","method":"service"},{"lineNumber":138,"code":{"135":" req.path_info = path_info","136":" si = servlet.get_instance(self, *options)","137":" @logger.debug(format(\"%s is invoked.\", si.class.name))","138":" si.service(req, res)","139":" end","140":"","141":" ##"},"file":"/Users/sheldonnbbaker/.rbenv/versions/2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb","method":"service"},{"lineNumber":94,"code":{"91":" @logger.warn(msg)","92":" callback.call(req, res)","93":" end","94":" server.service(req, res)","95":" rescue HTTPStatus::EOFError, HTTPStatus::RequestTimeout => ex","96":" res.set_error(ex)","97":" rescue HTTPStatus::Error => ex"},"file":"/Users/sheldonnbbaker/.rbenv/versions/2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb","method":"run"},{"lineNumber":295,"code":{"292":" raise","293":" end","294":" call_callback(:AcceptCallback, sock)","295":" block ? block.call(sock) : run(sock)","296":" rescue Errno::ENOTCONN","297":" @logger.debug \"Errno::ENOTCONN raised\"","298":" rescue ServerError => ex"},"file":"/Users/sheldonnbbaker/.rbenv/versions/2.1.3/lib/ruby/2.1.0/webrick/server.rb","method":"block in start_thread"}]}],"severity":"error","device":{"hostname":"deneb"},"metaData":{"request":{"url":"http://localhost:3000/api/explorees?campaign_id=41&group_id=41&order_column=firms.name&order_direction=asc&page=1&practice_areas_match=all&state=saved","httpMethod":"GET","params":{"campaign_id":"41","group_id":"41","order_column":"firms.name","order_direction":"asc","page":"1","practice_areas_match":"all","state":"saved","format":"json","controller":"explorees","action":"index"},"referer":"http://localhost:3000/api_proxy.html","clientIp":"::1","headers":{"Host":"localhost:3000","Connection":"keep-alive","Pragma":"no-cache","Cache-Control":"no-cache","Authorization":"[FILTERED]","Accept":"application/json, text/javascript, */*; q=0.01","X-Requested-With":"XMLHttpRequest","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36","Referer":"http://localhost:3000/api_proxy.html","Accept-Encoding":"gzip, deflate, sdch","Accept-Language":"en-CA,en;q=0.8,en-US;q=0.6,de;q=0.4","Cookie":"[FILTERED]","Version":"HTTP/1.1"},"railsAction":"explorees#index","requestId":"4e140fff-f90a-4d41-aaed-02ca02fff04d"},"session":{"session_id":"147f3bec9bd019eb0fc59573b6692643","_csrf_token":"PPOC2kPCbFHrTermdyF+urqI4YVI70oRddmaiGF5g/E="},"diagnostics":{"auth_header":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJwb3NzZXNzZWRfdXNlcl9pZCI6IjE1OTQiLCJ1c2VyX2lzX2FkbWluIjp0cnVlLCJleHAiOjE0NDI5NzMzMTF9.iTUZZbny3MurfWnoYDY1Q4bpmP_kaRr6ghsgY6LnzwM"}}}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment