---
http_interactions:
- request:
method: get
uri: MESH_BANKING_HOST/api/v1/bank_clients/available_bank_names?country_code=vn&nonce=remitano-1&user_level=1
body:
encoding: US-ASCII
string: ''
headers:
Authorization:
- 0342c6675a1d19a1979aa325697841cf592a1de9ee692d03f2f1d460ab2187f6764425851e9e8066d34f279f7f815993064659817dcc25cd8574e1aa5a351e15
Appname:
- remitano
response:
status:
code: 500
message: Internal Server Error
headers:
Content-Type:
- text/html; charset=UTF-8
X-Web-Console-Session-Id:
- 45792d1f5520ccabcea9d3c250e26a7f
X-Web-Console-Mount-Point:
- "/__web_console"
X-Request-Id:
- 27024d1e-b85e-4ff6-857f-bde21e59b974
X-Runtime:
- '2.466615'
Content-Length:
- '176692'
body:
encoding: ASCII-8BIT
string: "\n\n
\n \n
\n undefined local variable or method `abc'
for #<Grape::Endpoint:0x00007fb0f7e14ab0>\n\n \n\n
\n\n \n
\
\n
\n
\ Extracted source (around line #77):\n
\n
\
\n
\n \n \n \n75\n76\n77\n78\n79\n80\n
\ \n | \n\n\n get :available_bank_names do\n
\ bank_clients = BankClient.where(country_code: params[:country_code]).depositable\n abc\n protected_from_level
= CountryBankSetting[params[:country_code]]["can_assign_to_protected_from_level"]
|| 4\n bank_clients = bank_clients.where(protected:
false) if params[:user_level].to_i < protected_from_level\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #45):\n
\n
\n
\
\n \n
\ \n \n43\n44\n45\n46\n47\n48\n
\ \n | \n\n\n method = instance_method(method_name)\n
\ remove_method(method_name)\n proc
{ |endpoint_instance| method.bind(endpoint_instance).call }\n
\ end\n end\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #45):\n
\n
\n
\
\n \n
\ \n \n43\n44\n45\n46\n47\n48\n
\ \n | \n\n\n method = instance_method(method_name)\n
\ remove_method(method_name)\n proc
{ |endpoint_instance| method.bind(endpoint_instance).call }\n
\ end\n end\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #220):\n
\n
\n
\
\n \n
\ \n \n218\n219\n220\n221\n222\n223\n
\ \n | \n\n\n run_filters after_validations\n \n response_text = @block ? @block.call(self) : nil\n run_filters afters\n cookies.write(header)\n \n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #8):\n
\
\n
\n
\n \n \n \n6\n7\n8\n9\n10\n11\n
\ \n | \n\n\n def run_with_reduce_scout_transactions(*args)\n ::ReduceScoutTransactions::Helper.reduce!\n run_without_reduce_scout_transactions(*args)\n end\n end\n
\ end\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #171):\n
\
\n
\n
\n \n \n \n169\n170\n171\n172\n173\n174\n
\ \n | \n\n\n else\n builder = build_middleware\n builder.run options[:app] || lambda { |arg|
run(arg) }\n builder.call(env)\n end\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #24):\n
\n
\n
\
\n \n
\ \n \n22\n23\n24\n25\n26\n27\n
\ \n | \n\n\n @env = env\n before\n @app_response = @app.call(@env)\n after || @app_response\n
\ end\n \n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #18):\n
\n
\n
\
\n \n
\ \n \n16\n17\n18\n19\n20\n21\n
\ \n | \n\n\n\n def call(env)\n dup.call!(env)\n end\n \n def call!(env)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #24):\n
\n
\n
\
\n \n
\ \n \n22\n23\n24\n25\n26\n27\n
\ \n | \n\n\n @env = env\n before\n @app_response = @app.call(@env)\n after || @app_response\n
\ end\n \n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #18):\n
\n
\n
\
\n \n
\ \n \n16\n17\n18\n19\n20\n21\n
\ \n | \n\n\n\n def call(env)\n dup.call!(env)\n end\n \n def call!(env)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #27):\n
\n
\n
\
\n \n
\ \n \n25\n26\n27\n28\n29\n30\n
\ \n | \n\n\n begin\n error_response(catch(:error)
do\n return @app.call(@env)\n end)\n rescue StandardError
=> e\n is_rescuable = rescuable?(e.class)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #26):\n
\n
\n
\
\n \n
\ \n \n24\n25\n26\n27\n28\n29\n
\ \n | \n\n\n\n begin\n error_response(catch(:error) do\n
\ return @app.call(@env)\n end)\n rescue StandardError => e\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #26):\n
\n
\n
\
\n \n
\ \n \n24\n25\n26\n27\n28\n29\n
\ \n | \n\n\n\n begin\n error_response(catch(:error) do\n
\ return @app.call(@env)\n end)\n rescue StandardError => e\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #18):\n
\n
\n
\
\n \n
\ \n \n16\n17\n18\n19\n20\n21\n
\ \n | \n\n\n\n def call(env)\n dup.call!(env)\n end\n \n def call!(env)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #12):\n
\n
\n
\
\n \n
\ \n \n10\n11\n12\n13\n14\n15\n
\ \n | \n\n\n\n def call(env)\n status, headers, body = @app.call(env)\n \n if env[REQUEST_METHOD] == HEAD\n
\ [\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #244):\n
\
\n
\n
\n \n \n \n242\n243\n244\n245\n246\n247\n
\ \n | \n\n\n # every time it is called, so it should not be used if
performance is important.\n def call(env)\n to_app.call(env)\n end\n \n private\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #172):\n
\n
\n
\
\n \n
\ \n \n170\n171\n172\n173\n174\n175\n
\ \n | \n\n\n builder = build_middleware\n
\ builder.run options[:app] || lambda { |arg| run(arg) }\n builder.call(env)\n
\ end\n end\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #160):\n
\n
\n
\
\n \n
\ \n \n158\n159\n160\n161\n162\n163\n
\ \n | \n\n\n\n def call(env)\n dup.call!(env)\n end\n \n def call!(env)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #152):\n
\n
\n
\
\n \n
\ \n \n150\n151\n152\n153\n154\n155\n
\ \n | \n\n\n env[@parameters_key] = (old_params || {}).merge(params)\n \n result = route.app.call(env)\n \n if result[1][X_CASCADE]
== PASS\n env[@parameters_key] = old_params\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #96):\n
\n
\n
\
\n \n
\ \n \n94\n95\n96\n97\n98\n99\n
\ \n | \n\n\n\n if block_given?\n container.optimized_each(obj) do |route,
matches, params|\n yield route, matches,
params\n end\n
\ else\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #68):\n
\
\n
\n
\n \n \n \n66\n67\n68\n69\n70\n71\n
\ \n | \n\n\n nil\n end\n RUBY\n end\n \n def optimize_recognize!\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #95):\n
\n
\n
\
\n \n
\ \n \n93\n94\n95\n96\n97\n98\n
\ \n | \n\n\n optimize_container_iterator(container) unless container.respond_to?(:optimized_each)\n \n if block_given?\n container.optimized_each(obj) do |route, matches,
params|\n yield route, matches, params\n end\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #141):\n
\n
\n
\
\n \n
\ \n \n139\n140\n141\n142\n143\n144\n
\ \n | \n\n\n request = nil\n req =
@request_class.new(env)\n recognize(req)
do |route, matches, params|\n # TODO: We
only want to unescape params from uri related methods\n
\ params.each { |k, v| params[k] = Utils.unescape_uri(v) if v.is_a?(String)
}\n \n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #128):\n
\
\n
\n
\n \n \n \n126\n127\n128\n129\n130\n131\n
\ \n | \n\n\n\n def call(env)\n status, headers, body = @route_set.call(env)\n
\ headers.delete('X-Cascade') unless cascade?\n
\ [status, headers, body]\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #43):\n
\n
\n
\
\n \n
\ \n \n41\n42\n43\n44\n45\n46\n
\ \n | \n\n\n\n def call!(env)\n instance.call(env)\n
\ end\n \n # Create
a scope without affecting the URL.\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #39):\n
\n
\n
\
\n \n
\ \n \n37\n38\n39\n40\n41\n42\n
\ \n | \n\n\n def call(env)\n LOCK.synchronize
{ compile } unless instance\n call!(env)\n end\n \n
\ def call!(env)\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #19):\n
\
\n
\n
\n \n \n \n17\n18\n19\n20\n21\n22\n
\ \n | \n\n\n\n SERVE = ->(app, req)
{ app.serve req }\n CALL = ->(app,
req) { app.call req.env }\n \n
\ def initialize(app, constraints, strategy)\n
\ # Unwrap Constraints objects. I don't actually think it's
possible\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #48):\n
\
\n
\n
\n \n \n \n46\n47\n48\n49\n50\n51\n
\ \n | \n\n\n return [ 404, { "X-Cascade" => "pass"
}, [] ] unless matches?(req)\n \n @strategy.call @app, req\n end\n \n private\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #49):\n
\n
\n
\
\n \n
\ \n \n47\n48\n49\n50\n51\n52\n
\ \n | \n\n\n req.path_parameters = set_params.merge parameters\n \n status, headers,
body = route.app.serve(req)\n \n
\ if "pass" == headers["X-Cascade"]\n req.script_name = script_name\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #32):\n
\n
\n
\
\n \n
\ \n \n30\n31\n32\n33\n34\n35\n
\ \n | \n\n\n\n def serve(req)\n find_routes(req).each do |match, parameters,
route|\n set_params = req.path_parameters\n path_info = req.path_info\n
\ script_name = req.script_name\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #32):\n
\n
\n
\
\n \n
\ \n \n30\n31\n32\n33\n34\n35\n
\ \n | \n\n\n\n def serve(req)\n find_routes(req).each do |match, parameters,
route|\n set_params = req.path_parameters\n path_info = req.path_info\n
\ script_name = req.script_name\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #834):\n
\n
\n
\
\n \n
\ \n \n832\n833\n834\n835\n836\n837\n
\ \n | \n\n\n req = make_request(env)\n
\ req.path_info = Journey::Router::Utils.normalize_path(req.path_info)\n @router.serve(req)\n
\ end\n \n def
recognize_path(path, environment = {})\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #192):\n
\n
\n
\
\n \n
\ \n \n190\n191\n192\n193\n194\n195\n
\ \n | \n\n\n return other_phase if respond_to?(:other_phase)\n \n @app.call(env)\n end\n \n
\ # Responds to an OPTIONS request.\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #169):\n
\n
\n
\
\n \n
\ \n \n167\n168\n169\n170\n171\n172\n
\ \n | \n\n\n # @param [Hash] The Rack environment.\n
\ def call(env)\n dup.call!(env)\n end\n \n
\ # The logic for dispatching any additional actions that need\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #45):\n
\n
\n
\
\n \n
\ \n \n43\n44\n45\n46\n47\n48\n
\ \n | \n\n\n\n def call(env)\n to_app.call(env)\n end\n end\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #15):\n
\n
\n
\
\n \n
\ \n \n13\n14\n15\n16\n17\n18\n
\ \n | \n\n\n\n Bullet.start_request\n status, headers, response = @app.call(env)\n \n response_body = nil\n \n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #53):\n
\
\n
\n
\n \n \n \n51\n52\n53\n54\n55\n56\n
\ \n | \n\n\n\n def call(env)\n rack_response = @app.call(env)\n
\ begin\n DevTraceResponseManipulator.new(env,
rack_response).call\n rescue Exception =>
e\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #20):\n
\
\n
\n
\n \n \n \n18\n19\n20\n21\n22\n23\n
\ \n | \n\n\n else\n attempt_to_start_agent\n @app.call(env)\n end\n end\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #53):\n
\n
\n
\
\n \n
\ \n \n51\n52\n53\n54\n55\n56\n
\ \n | \n\n\n\n select_database(request)
do\n @app.call(env)\n end\n end\n \n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #58):\n
\
\n
\n
\n \n \n \n56\n57\n58\n59\n60\n61\n
\ \n | \n\n\n ActiveRecord::Base.connected_to(role: ActiveRecord::Base.reading_role,
prevent_writes: true) do\n instrumenter.instrument("database_selector.active_record.read_from_replica")
do\n yield\n
\ end\n end\n
\ end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #24):\n
\
\n
\n
\n \n \n \n22\n23\n24\n25\n26\n27\n
\ \n | \n\n\n listeners_state = start name, payload\n
\ begin\n yield payload if
block_given?\n rescue Exception => e\n payload[:exception] = [e.class.name, e.message]\n payload[:exception_object] = e\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #57):\n
\n
\n
\
\n \n
\ \n \n55\n56\n57\n58\n59\n60\n
\ \n | \n\n\n def read_from_replica(&blk)\n
\ ActiveRecord::Base.connected_to(role: ActiveRecord::Base.reading_role,
prevent_writes: true) do\n instrumenter.instrument("database_selector.active_record.read_from_replica")
do\n yield\n
\ end\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #1040):\n
\n
\n
\
\n \n
\ \n \n1038\n1039\n1040\n1041\n1042\n1043\n
\ \n | \n\n\n def while_preventing_writes(enabled = true)\n original, self.prevent_writes = self.prevent_writes,
enabled\n yield\n
\ ensure\n self.prevent_writes = original\n end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #122):\n
\
\n
\n
\n \n \n \n120\n121\n122\n123\n124\n125\n
\ \n | \n\n\n\n with_handler(role.to_sym)
do\n connection_handler.while_preventing_writes(prevent_writes,
&blk)\n end\n
\ else\n raise ArgumentError, "must
provide a `database` or a `role`."\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #251):\n
\n
\n
\
\n \n
\ \n \n249\n250\n251\n252\n253\n254\n
\ \n | \n\n\n def swap_connection_handler(handler, &blk) # :nodoc:\n old_handler, ActiveRecord::Base.connection_handler
= ActiveRecord::Base.connection_handler, handler\n return_value = yield\n return_value.load
if return_value.is_a? ActiveRecord::Relation\n return_value\n ensure\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #159):\n
\
\n
\n
\n \n \n \n157\n158\n159\n160\n161\n162\n
\ \n | \n\n\n def with_handler(handler_key, &blk) # :nodoc:\n handler = lookup_connection_handler(handler_key)\n swap_connection_handler(handler, &blk)\n end\n \n
\ def resolve_config_for_connection(config_or_env) # :nodoc:\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #121):\n
\n
\n
\
\n \n
\ \n \n119\n120\n121\n122\n123\n124\n
\ \n | \n\n\n prevent_writes = true if role == reading_role\n \n with_handler(role.to_sym)
do\n connection_handler.while_preventing_writes(prevent_writes,
&blk)\n end\n
\ else\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #56):\n
\
\n
\n
\n \n \n \n54\n55\n56\n57\n58\n59\n
\ \n | \n\n\n\n def read_from_replica(&blk)\n ActiveRecord::Base.connected_to(role: ActiveRecord::Base.reading_role,
prevent_writes: true) do\n instrumenter.instrument("database_selector.active_record.read_from_replica")
do\n yield\n
\ end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #38):\n
\
\n
\n
\n \n \n \n36\n37\n38\n39\n40\n41\n
\ \n | \n\n\n read_from_primary(&blk)\n
\ else\n read_from_replica(&blk)\n end\n end\n \n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #63):\n
\
\n
\n
\n \n \n \n61\n62\n63\n64\n65\n66\n
\ \n | \n\n\n\n if reading_request?(request)\n resolver.read(&blk)\n
\ else\n resolver.write(&blk)\n end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #52):\n
\
\n
\n
\n \n \n \n50\n51\n52\n53\n54\n55\n
\ \n | \n\n\n request = ActionDispatch::Request.new(env)\n \n select_database(request)
do\n @app.call(env)\n
\ end\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #36):\n
\n
\n
\
\n \n
\ \n \n34\n35\n36\n37\n38\n39\n
\ \n | \n\n\n result = catch(:warden) do\n
\ env['warden'].on_request\n
\ @app.call(env)\n end\n \n result ||= {}\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #34):\n
\n
\n
\
\n \n
\ \n \n32\n33\n34\n35\n36\n37\n
\ \n | \n\n\n\n env['warden'] = Proxy.new(env,
self)\n result = catch(:warden) do\n env['warden'].on_request\n
\ @app.call(env)\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #34):\n
\n
\n
\
\n \n
\ \n \n32\n33\n34\n35\n36\n37\n
\ \n | \n\n\n\n env['warden'] = Proxy.new(env,
self)\n result = catch(:warden) do\n env['warden'].on_request\n
\ @app.call(env)\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #15):\n
\n
\n
\
\n \n
\ \n \n13\n14\n15\n16\n17\n18\n
\ \n | \n\n\n def call(env)\n env[RACK_TEMPFILES]
||= []\n status, headers, body = @app.call(env)\n body_proxy = BodyProxy.new(body) do\n
\ env[RACK_TEMPFILES].each(&:close!) unless env[RACK_TEMPFILES].nil?\n end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #27):\n
\
\n
\n
\n \n \n \n25\n26\n27\n28\n29\n30\n
\ \n | \n\n\n\n def call(env)\n status, headers, body = @app.call(env)\n \n if etag_status?(status) && etag_body?(body) &&
!skip_caching?(headers)\n original_body =
body\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #27):\n
\
\n
\n
\n \n \n \n25\n26\n27\n28\n29\n30\n
\ \n | \n\n\n case env[REQUEST_METHOD]\n
\ when "GET", "HEAD"\n
\ status, headers, body = @app.call(env)\n
\ headers = Utils::HeaderHash[headers]\n if
status == 200 && fresh?(env, headers)\n
\ status = 304\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #12):\n
\
\n
\n
\n \n \n \n10\n11\n12\n13\n14\n15\n
\ \n | \n\n\n\n def call(env)\n status, headers, body = @app.call(env)\n \n if env[REQUEST_METHOD] == HEAD\n
\ [\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #18):\n
\
\n
\n
\n \n \n \n16\n17\n18\n19\n20\n21\n
\ \n | \n\n\n def call(env)\n request
= ActionDispatch::Request.new env\n _,
headers, _ = response = @app.call(env)\n \n return response unless html_response?(headers)\n return response if policy_present?(headers)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #266):\n
\n
\n
\
\n \n
\ \n \n264\n265\n266\n267\n268\n269\n
\ \n | \n\n\n req = make_request env\n
\ prepare_session(req)\n status,
headers, body = app.call(req.env)\n res
= Rack::Response::Raw.new status, headers\n commit_session(req,
res)\n [status, headers, body]\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #260):\n
\n
\n
\
\n \n
\ \n \n258\n259\n260\n261\n262\n263\n
\ \n | \n\n\n\n def call(env)\n context(env)\n end\n \n def context(env, app =
@app)\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #648):\n
\
\n
\n
\n \n \n \n646\n647\n648\n649\n650\n651\n
\ \n | \n\n\n request = ActionDispatch::Request.new env\n \n status, headers, body
= @app.call(env)\n \n if
request.have_cookie_jar?\n cookie_jar = request.cookie_jar\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #567):\n
\n
\n
\
\n \n
\ \n \n565\n566\n567\n568\n569\n570\n
\ \n | \n\n\n @last_check = mtime\n end\n @app.call(env)\n end\n \n private\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #27):\n
\n
\n
\
\n \n
\ \n \n25\n26\n27\n28\n29\n30\n
\ \n | \n\n\n error = nil\n result =
run_callbacks :call do\n @app.call(env)\n rescue => error\n end\n raise error if error\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #101):\n
\n
\n
\
\n \n
\ \n \n99\n100\n101\n102\n103\n104\n
\ \n | \n\n\n\n if callbacks.empty?\n yield if block_given?\n
\ else\n env = Filters::Environment.new(self,
false, nil)\n next_sequence = callbacks.compile\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #26):\n
\n
\n
\
\n \n
\ \n \n24\n25\n26\n27\n28\n29\n
\ \n | \n\n\n def call(env)\n error =
nil\n result = run_callbacks :call do\n @app.call(env)\n rescue
=> error\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #14):\n
\n
\n
\
\n \n
\ \n \n12\n13\n14\n15\n16\n17\n
\ \n | \n\n\n state = @executor.run!\n begin\n response = @app.call(env)\n
\ returned = response << ::Rack::BodyProxy.new(response.pop) {
state.complete! }\n ensure\n
\ state.complete! unless returned\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #18):\n
\n
\n
\
\n \n
\ \n \n16\n17\n18\n19\n20\n21\n
\ \n | \n\n\n def call(env)\n request
= ActionDispatch::Request.new(env)\n return
@app.call(env) unless actionable_request?(request)\n \n ActiveSupport::ActionableError.dispatch(request.params[:error].to_s.safe_constantize,
request.params[:action])\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #25):\n
\n
\n
\
\n \n
\ \n \n23\n24\n25\n26\n27\n28\n
\ \n | \n\n\n begin\n Rollbar.notifier.enable_locals\n response = @app.call(env)\n \n if (framework_exception
= env['action_dispatch.exception'])\n report_exception_to_rollbar(env,
framework_exception)\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #145):\n
\
\n
\n
\n \n \n \n143\n144\n145\n146\n147\n148\n
\ \n | \n\n\n self.notifier = old_notifier.scope(options, config_overrides)\n \n result = yield\n result\n ensure\n self.notifier = old_notifier\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #22):\n
\n
\n
\
\n \n
\ \n \n20\n21\n22\n23\n24\n25\n
\ \n | \n\n\n env['rollbar.scope'] = scope = fetch_scope(env)\n \n Rollbar.scoped(scope)
do\n begin\n
\ Rollbar.notifier.enable_locals\n response
= @app.call(env)\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #32):\n
\
\n
\n
\n \n \n \n30\n31\n32\n33\n34\n35\n
\ \n | \n\n\n def call(env)\n request
= ActionDispatch::Request.new env\n _,
headers, body = response = @app.call(env)\n \n if headers["X-Cascade"] == "pass"\n body.close if body.respond_to?(:close)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #22):\n
\n
\n
\
\n \n
\ \n \n20\n21\n22\n23\n24\n25\n
\ \n | \n\n\n\n def call_with_rollbar(env)\n call_without_rollbar(env)\n
\ rescue ActionController::RoutingError => exception\n # won't reach here if show_detailed_exceptions
is true\n scope = extract_scope_from(env)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #132):\n
\n
\n
\
\n \n
\ \n \n130\n131\n132\n133\n134\n135\n
\ \n | \n\n\n\n def call_app(env)\n @app.call(env)\n rescue
=> e\n throw :app_exception, e\n end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #28):\n
\
\n
\n
\n \n \n \n26\n27\n28\n29\n30\n31\n
\ \n | \n\n\n\n \n
\ status, headers, body = call_app(env)\n \n if (session = Session.from(Thread.current)) &&
acceptable_content_type?(headers)\n headers["X-Web-Console-Session-Id"]
= session.id\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #17):\n
\
\n
\n
\n \n \n \n15\n16\n17\n18\n19\n20\n
\ \n | \n\n\n\n def call(env)\n app_exception = catch :app_exception do\n
\ request = create_regular_or_whiny_request(env)\n
\ return call_app(env) unless request.permitted?\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #17):\n
\n
\n
\
\n \n
\ \n \n15\n16\n17\n18\n19\n20\n
\ \n | \n\n\n\n def call(env)\n app_exception = catch :app_exception do\n
\ request = create_regular_or_whiny_request(env)\n
\ return call_app(env) unless request.permitted?\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #33):\n
\n
\n
\
\n \n
\ \n \n31\n32\n33\n34\n35\n36\n
\ \n | \n\n\n def call(env)\n request
= ActionDispatch::Request.new env\n @app.call(env)\n rescue Exception => exception\n
\ if request.show_exceptions?\n render_exception(request,
exception)\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #37):\n
\
\n
\n
\n \n \n \n35\n36\n37\n38\n39\n40\n
\ \n | \n\n\n instrumenter.start "request.action_dispatch",
request: request\n logger.info { started_request_message(request)
}\n status, headers, body = @app.call(env)\n body = ::Rack::BodyProxy.new(body) { finish(request)
}\n [status, headers, body]\n rescue Exception\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #26):\n
\n
\n
\
\n \n
\ \n \n24\n25\n26\n27\n28\n29\n
\ \n | \n\n\n\n if logger.respond_to?(:tagged)\n logger.tagged(compute_tags(request)) { call_app(request,
env) }\n else\n
\ call_app(request, env)\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #80):\n
\n
\n
\
\n \n
\ \n \n78\n79\n80\n81\n82\n83\n
\ \n | \n\n\n\n def tagged(*tags)\n formatter.tagged(*tags) { yield self }\n end\n \n
\ def flush\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #28):\n
\
\n
\n
\n \n \n \n26\n27\n28\n29\n30\n31\n
\ \n | \n\n\n def tagged(*tags)\n new_tags
= push_tags(*tags)\n yield self\n ensure\n pop_tags(new_tags.size)\n end\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #80):\n
\
\n
\n
\n \n \n \n78\n79\n80\n81\n82\n83\n
\ \n | \n\n\n\n def tagged(*tags)\n formatter.tagged(*tags) { yield self }\n end\n \n
\ def flush\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #26):\n
\
\n
\n
\n \n \n \n24\n25\n26\n27\n28\n29\n
\ \n | \n\n\n\n if logger.respond_to?(:tagged)\n logger.tagged(compute_tags(request)) { call_app(request,
env) }\n else\n
\ call_app(request, env)\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #81):\n
\n
\n
\
\n \n
\ \n \n79\n80\n81\n82\n83\n84\n
\ \n | \n\n\n req = ActionDispatch::Request.new env\n
\ req.remote_ip = GetIp.new(req, check_ip, proxies)\n @app.call(req.env)\n end\n \n # The GetIp class exists as
a way to defer processing of the request data\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #19):\n
\n
\n
\
\n \n
\ \n \n17\n18\n19\n20\n21\n22\n
\ \n | \n\n\n RequestStore.begin!\r\n \r\n response = @app.call(env)\r\n \r\n returned = response << Rack::BodyProxy.new(response.pop)
do\r\n RequestStore.end!\r\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #27):\n
\n
\n
\
\n \n
\ \n \n25\n26\n27\n28\n29\n30\n
\ \n | \n\n\n req = ActionDispatch::Request.new env\n
\ req.request_id = make_request_id(req.x_request_id)\n @app.call(env).tap { |_status, headers, _body| headers[X_REQUEST_ID]
= req.request_id }\n end\n \n private\n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #24):\n
\
\n
\n
\n \n \n \n22\n23\n24\n25\n26\n27\n
\ \n | \n\n\n end\n \n @app.call(env)\n end\n \n def method_override(env)\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #22):\n
\n
\n
\
\n \n
\ \n \n20\n21\n22\n23\n24\n25\n
\ \n | \n\n\n def call(env)\n start_time
= Utils.clock_time\n status, headers,
body = @app.call(env)\n headers = Utils::HeaderHash[headers]\n \n request_time = Utils.clock_time
- start_time\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #29):\n
\
\n
\n
\n \n \n \n27\n28\n29\n30\n31\n32\n
\ \n | \n\n\n def call(env)\n LocalCacheRegistry.set_cache_for(local_cache_key,
LocalStore.new)\n response = @app.call(env)\n response[2] = ::Rack::BodyProxy.new(response[2])
do\n LocalCacheRegistry.set_cache_for(local_cache_key,
nil)\n end\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #14):\n
\n
\n
\
\n \n
\ \n \n12\n13\n14\n15\n16\n17\n
\ \n | \n\n\n state = @executor.run!\n begin\n response = @app.call(env)\n
\ returned = response << ::Rack::BodyProxy.new(response.pop) {
state.complete! }\n ensure\n
\ state.complete! unless returned\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #126):\n
\n
\n
\
\n \n
\ \n \n124\n125\n126\n127\n128\n129\n
\ \n | \n\n\n end\n \n @app.call(req.env)\n end\n end\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #110):\n
\n
\n
\
\n \n
\ \n \n108\n109\n110\n111\n112\n113\n
\ \n | \n\n\n\n def call(env)\n status, headers, body = @app.call(env)\n
\ if body.respond_to?(:to_path)\n case
type = variation(env)\n when 'X-Accel-Redirect'\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #82):\n
\n
\n
\
\n \n
\ \n \n80\n81\n82\n83\n84\n85\n
\ \n | \n\n\n if authorized?(request)\n mark_as_authorized(request)\n @app.call(env)\n else\n @response_app.call(env)\n
\ end\n \n \n | \n
\n
\n
\n
\
\n
\n
\n Extracted source (around line #15):\n
\
\n
\n
\n \n \n \n13\n14\n15\n16\n17\n18\n
\ \n | \n\n\n env['HTTP_X_REAL_IP'] = env['HTTP_CF_CONNECTING_IP']\n end\n @app.call(env)\n rescue ActionController::RoutingError => e\n end\n end\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #527):\n
\n
\n
\
\n \n
\ \n \n525\n526\n527\n528\n529\n530\n
\ \n | \n\n\n def call(env)\n req = build_request
env\n app.call req.env\n
\ end\n \n # Defines
additional Rack env configuration that is added on each call.\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #228):\n
\n
\n
\
\n \n
\ \n \n226\n227\n228\n229\n230\n231\n
\ \n | \n\n\n def call(env)\n env[Const::PUMA_CONFIG]
= @config\n @app.call(env)\n end\n end\n \n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #713):\n
\n
\n
\
\n \n
\ \n \n711\n712\n713\n714\n715\n716\n
\ \n | \n\n\n begin\n begin\n status, headers, res_body = @app.call(env)\n \n return :async if req.hijacked\n \n \n \n | \n
\n
\n
\
\n
\n
\n
\
\n Extracted source (around line #472):\n
\
\n
\n
\n \n \n \n470\n471\n472\n473\n474\n475\n
\ \n | \n\n\n\n while true\n case handle_request(client, buffer)\n when false\n return\n when :async\n \n \n | \n
\n
\
\n
\n
\n
\n
\n Extracted source
(around line #328):\n
\n
\n
\
\n \n
\ \n \n326\n327\n328\n329\n330\n331\n
\ \n | \n\n\n else\n if process_now\n process_client client, buffer\n else\n client.set_timeout
@first_data_timeout\n @reactor.add client\n \n \n | \n
\
\n
\n
\n
\n
\n
\n Extracted
source (around line #134):\n
\n
\n
\
\n \n
\ \n \n132\n133\n134\n135\n136\n137\n
\ \n | \n\n\n\n begin\n block.call(work, *extra)\n
\ rescue Exception => e\n STDERR.puts
"Error reached top of thread-pool: #{e.message} (#{e.class})"\n end\n \n \n | \n
\n
\n
\
\n
\n\n \n
Rails.root: /Users/tannauit/code/mesh-banking
\n\n
\n\n\n\n\n
\ \n
Request
\n
Parameters:
{"country_code"=>"vn", "nonce"=>"remitano-1",
"user_level"=>"1"}\n
\n\n
\n\n
\n
\n
GATEWAY_INTERFACE:
"CGI/1.2"\nHTTP_ACCEPT: "*/*"\nHTTP_VERSION: "HTTP/1.1"\nORIGINAL_SCRIPT_NAME:
""\nREMOTE_ADDR: "::1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
"HTTP/1.1"
\n
\n\n
Response
\n
Headers:
None
\n\n
\n\n\n