--- 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 Action Controller: Exception caught\n \n\n \n\n\n\n
\n

\n NameError\n

\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\n \ \n
\n
\n75\n76\n77\n78\n79\n80\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 Extracted source (around line #45):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n43\n44\n45\n46\n47\n48\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 Extracted source (around line #45):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n43\n44\n45\n46\n47\n48\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 Extracted source (around line #220):\n
\n
\n \ \n \n \ \n\n \n
\n
\n218\n219\n220\n221\n222\n223\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 Extracted source (around line #8):\n \
\n
\n \n \n \n\n \n
\n
\n6\n7\n8\n9\n10\n11\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 Extracted source (around line #171):\n \
\n
\n \n \n \n\n \ \n
\n
\n169\n170\n171\n172\n173\n174\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 Extracted source (around line #24):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n22\n23\n24\n25\n26\n27\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 Extracted source (around line #18):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n16\n17\n18\n19\n20\n21\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 Extracted source (around line #24):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n22\n23\n24\n25\n26\n27\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 Extracted source (around line #18):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n16\n17\n18\n19\n20\n21\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 Extracted source (around line #27):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n25\n26\n27\n28\n29\n30\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 Extracted source (around line #26):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n24\n25\n26\n27\n28\n29\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 Extracted source (around line #26):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n24\n25\n26\n27\n28\n29\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 Extracted source (around line #18):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n16\n17\n18\n19\n20\n21\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 Extracted source (around line #12):\n
\n
\n \ \n \n \ \n\n \n
\n
\n10\n11\n12\n13\n14\n15\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 Extracted source (around line #244):\n \
\n
\n \n \n \n\n \ \n
\n
\n242\n243\n244\n245\n246\n247\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 Extracted source (around line #172):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n170\n171\n172\n173\n174\n175\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 Extracted source (around line #160):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n158\n159\n160\n161\n162\n163\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 Extracted source (around line #152):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n150\n151\n152\n153\n154\n155\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 Extracted source (around line #96):\n
\n
\n \ \n \n \ \n\n \n
\n
\n94\n95\n96\n97\n98\n99\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 Extracted source (around line #68):\n \
\n
\n \n \n \n\n \ \n
\n
\n66\n67\n68\n69\n70\n71\n
        \             
\n
\n
\n
nil\n
end\n
RUBY\n
end\n
\n
def optimize_recognize!\n
\n
\n
\n
\n
\n
\n
\n Extracted source (around line #95):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n93\n94\n95\n96\n97\n98\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 Extracted source (around line #141):\n
\n
\n \ \n \n \ \n\n \n
\n
\n139\n140\n141\n142\n143\n144\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 Extracted source (around line #128):\n \
\n
\n \n \n \n\n \ \n
\n
\n126\n127\n128\n129\n130\n131\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 Extracted source (around line #43):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n41\n42\n43\n44\n45\n46\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 Extracted source (around line #39):\n
\n
\n \ \n \n \ \n\n \n
\n
\n37\n38\n39\n40\n41\n42\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 Extracted source (around line #19):\n \
\n
\n \n \n \n\n \n
\n
\n17\n18\n19\n20\n21\n22\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 Extracted source (around line #48):\n \
\n
\n \n \n \n\n \ \n
\n
\n46\n47\n48\n49\n50\n51\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 Extracted source (around line #49):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n47\n48\n49\n50\n51\n52\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 Extracted source (around line #32):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n30\n31\n32\n33\n34\n35\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 Extracted source (around line #32):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n30\n31\n32\n33\n34\n35\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 Extracted source (around line #834):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n832\n833\n834\n835\n836\n837\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 Extracted source (around line #192):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n190\n191\n192\n193\n194\n195\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 Extracted source (around line #169):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n167\n168\n169\n170\n171\n172\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 Extracted source (around line #45):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n43\n44\n45\n46\n47\n48\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 Extracted source (around line #15):\n
\n
\n \ \n \n \ \n\n \n
\n
\n13\n14\n15\n16\n17\n18\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 Extracted source (around line #53):\n \
\n
\n \n \n \n\n \n
\n
\n51\n52\n53\n54\n55\n56\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 Extracted source (around line #20):\n \
\n
\n \n \n \n\n \ \n
\n
\n18\n19\n20\n21\n22\n23\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 Extracted source (around line #53):\n
\n
\n \ \n \n \ \n\n \n
\n
\n51\n52\n53\n54\n55\n56\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 Extracted source (around line #58):\n \
\n
\n \n \n \n\n \n
\n
\n56\n57\n58\n59\n60\n61\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 Extracted source (around line #24):\n \
\n
\n \n \n \n\n \ \n
\n
\n22\n23\n24\n25\n26\n27\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 Extracted source (around line #57):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n55\n56\n57\n58\n59\n60\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 Extracted source (around line #1040):\n
\n
\n \ \n \n \ \n\n \n
\n
\n1038\n1039\n1040\n1041\n1042\n1043\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 Extracted source (around line #122):\n \
\n
\n \n \n \n\n \n \
\n
\n120\n121\n122\n123\n124\n125\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 Extracted source (around line #251):\n
\n
\n \ \n \n \ \n\n \n
\n
\n249\n250\n251\n252\n253\n254\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 Extracted source (around line #159):\n \
\n
\n \n \n \n\n \ \n
\n
\n157\n158\n159\n160\n161\n162\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 Extracted source (around line #121):\n
\n
\n \ \n \n \ \n\n \n
\n
\n119\n120\n121\n122\n123\n124\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 Extracted source (around line #56):\n \
\n
\n \n \n \n\n \n
\n
\n54\n55\n56\n57\n58\n59\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 Extracted source (around line #38):\n \
\n
\n \n \n \n\n \n
\n
\n36\n37\n38\n39\n40\n41\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 Extracted source (around line #63):\n \
\n
\n \n \n \n\n \n
\n
\n61\n62\n63\n64\n65\n66\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 Extracted source (around line #52):\n \
\n
\n \n \n \n\n \ \n
\n
\n50\n51\n52\n53\n54\n55\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 Extracted source (around line #36):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n34\n35\n36\n37\n38\n39\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 Extracted source (around line #34):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n32\n33\n34\n35\n36\n37\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 Extracted source (around line #34):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n32\n33\n34\n35\n36\n37\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 Extracted source (around line #15):\n
\n
\n \ \n \n \ \n\n \n
\n
\n13\n14\n15\n16\n17\n18\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 Extracted source (around line #27):\n \
\n
\n \n \n \n\n \n
\n
\n25\n26\n27\n28\n29\n30\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 Extracted source (around line #27):\n \
\n
\n \n \n \n\n \n
\n
\n25\n26\n27\n28\n29\n30\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 Extracted source (around line #12):\n \
\n
\n \n \n \n\n \n
\n
\n10\n11\n12\n13\n14\n15\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 Extracted source (around line #18):\n \
\n
\n \n \n \n\n \ \n
\n
\n16\n17\n18\n19\n20\n21\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 Extracted source (around line #266):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n264\n265\n266\n267\n268\n269\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 Extracted source (around line #260):\n
\n
\n \ \n \n \ \n\n \n
\n
\n258\n259\n260\n261\n262\n263\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 Extracted source (around line #648):\n \
\n
\n \n \n \n\n \ \n
\n
\n646\n647\n648\n649\n650\n651\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 Extracted source (around line #567):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n565\n566\n567\n568\n569\n570\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 Extracted source (around line #27):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n25\n26\n27\n28\n29\n30\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 Extracted source (around line #101):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n99\n100\n101\n102\n103\n104\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 Extracted source (around line #26):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n24\n25\n26\n27\n28\n29\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 Extracted source (around line #14):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n12\n13\n14\n15\n16\n17\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 Extracted source (around line #18):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n16\n17\n18\n19\n20\n21\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 Extracted source (around line #25):\n
\n
\n \ \n \n \ \n\n \n
\n
\n23\n24\n25\n26\n27\n28\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 Extracted source (around line #145):\n \
\n
\n \n \n \n\n \ \n
\n
\n143\n144\n145\n146\n147\n148\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 Extracted source (around line #22):\n
\n
\n \ \n \n \ \n\n \n
\n
\n20\n21\n22\n23\n24\n25\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 Extracted source (around line #32):\n \
\n
\n \n \n \n\n \ \n
\n
\n30\n31\n32\n33\n34\n35\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 Extracted source (around line #22):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n20\n21\n22\n23\n24\n25\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 Extracted source (around line #132):\n
\n
\n \ \n \n \ \n\n \n
\n
\n130\n131\n132\n133\n134\n135\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 Extracted source (around line #28):\n \
\n
\n \n \n \n\n \n
\n
\n26\n27\n28\n29\n30\n31\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 Extracted source (around line #17):\n \
\n
\n \n \n \n\n \ \n
\n
\n15\n16\n17\n18\n19\n20\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 Extracted source (around line #17):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n15\n16\n17\n18\n19\n20\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 Extracted source (around line #33):\n
\n
\n \ \n \n \ \n\n \n
\n
\n31\n32\n33\n34\n35\n36\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 Extracted source (around line #37):\n \
\n
\n \n \n \n\n \n \
\n
\n35\n36\n37\n38\n39\n40\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 Extracted source (around line #26):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n24\n25\n26\n27\n28\n29\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 Extracted source (around line #80):\n
\n
\n \ \n \n \ \n\n \n
\n
\n78\n79\n80\n81\n82\n83\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 Extracted source (around line #28):\n \
\n
\n \n \n \n\n \n
\n
\n26\n27\n28\n29\n30\n31\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 Extracted source (around line #80):\n \
\n
\n \n \n \n\n \n
\n
\n78\n79\n80\n81\n82\n83\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 Extracted source (around line #26):\n \
\n
\n \n \n \n\n \ \n
\n
\n24\n25\n26\n27\n28\n29\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 Extracted source (around line #81):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n79\n80\n81\n82\n83\n84\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 Extracted source (around line #19):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n17\n18\n19\n20\n21\n22\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 Extracted source (around line #27):\n
\n
\n \ \n \n \ \n\n \n
\n
\n25\n26\n27\n28\n29\n30\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 Extracted source (around line #24):\n \
\n
\n \n \n \n\n \ \n
\n
\n22\n23\n24\n25\n26\n27\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 Extracted source (around line #22):\n
\n
\n \ \n \n \ \n\n \n
\n
\n20\n21\n22\n23\n24\n25\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 Extracted source (around line #29):\n \
\n
\n \n \n \n\n \n \
\n
\n27\n28\n29\n30\n31\n32\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 Extracted source (around line #14):\n
\n
\n \ \n \n \ \n\n \n \
\n
\n12\n13\n14\n15\n16\n17\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 Extracted source (around line #126):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n124\n125\n126\n127\n128\n129\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 Extracted source (around line #110):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n108\n109\n110\n111\n112\n113\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 Extracted source (around line #82):\n
\n
\n \ \n \n \ \n\n \n
\n
\n80\n81\n82\n83\n84\n85\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 Extracted source (around line #15):\n \
\n
\n \n \n \n\n \ \n
\n
\n13\n14\n15\n16\n17\n18\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 Extracted source (around line #527):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n525\n526\n527\n528\n529\n530\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 Extracted source (around line #228):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n226\n227\n228\n229\n230\n231\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 Extracted source (around line #713):\n
\n
\n \ \n \n \ \n\n \n
\n
\n711\n712\n713\n714\n715\n716\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 Extracted source (around line #472):\n \
\n
\n \n \n \n\n \n \
\n
\n470\n471\n472\n473\n474\n475\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 Extracted source (around line #328):\n
\n
\n \ \n \n \ \n\n \ \n
\n
\n326\n327\n328\n329\n330\n331\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 Extracted source (around line #134):\n
\n
\n \ \n \n \ \n\n \n
\n
\n132\n133\n134\n135\n136\n137\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

Rails.root: /Users/tannauit/code/mesh-banking

\n\n
\n Application Trace |\n Framework Trace |\n Full Trace \n\n \n
\n \n \n grape (0.9.0) lib/grape/endpoint.rb:45:in `call'\n \n
\n \n grape (0.9.0) lib/grape/endpoint.rb:45:in `block in generate_api_method'\n \n
\n \n grape (0.9.0) lib/grape/endpoint.rb:220:in `run'\n \n
\n \n reduce_scout_transactions (54b8e9990efb) lib/reduce_scout_transactions/frameworks/grape.rb:8:in `run_with_reduce_scout_transactions'\n \n
\n \ \n grape (0.9.0) lib/grape/endpoint.rb:171:in `block in call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:24:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:18:in `call'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:24:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:18:in `call'\n \n
\n \n grape (0.9.0) lib/grape/middleware/error.rb:27:in `block in call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/error.rb:26:in `catch'\n \n
\n \n grape (0.9.0) lib/grape/middleware/error.rb:26:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:18:in `call'\n \n
\n \n rack (2.2.3) lib/rack/head.rb:12:in `call'\n \ \n
\n \n \ rack (2.2.3) lib/rack/builder.rb:244:in `call'\n \n \
\n \n grape (0.9.0) lib/grape/endpoint.rb:172:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/endpoint.rb:160:in `call'\n \ \n
\n \n \ rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/code_generation.rb:68:in `optimized_each'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'\n \n
\n \n grape (0.9.0) lib/grape/api.rb:128:in `call'\n \ \n
\n \n \ grape (0.9.0) lib/grape/api.rb:43:in `call!'\n \n \
\n \n grape (0.9.0) lib/grape/api.rb:39:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'\n \n
\n \ \n actionpack (6.0.3.5) lib/action_dispatch/routing/mapper.rb:48:in `serve'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/journey/router.rb:49:in `block in serve'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/journey/router.rb:32:in `each'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/journey/router.rb:32:in `serve'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/routing/route_set.rb:834:in `call'\n \n
\n \n omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'\n \n
\n \n omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'\n \n
\n \n omniauth (1.9.1) lib/omniauth/builder.rb:45:in `call'\n \ \n
\n \n \ bullet (6.1.0) lib/bullet/rack.rb:15:in `call'\n \n \
\n \n scout_apm (2.6.9) lib/scout_apm/instant/middleware.rb:53:in `call'\n \n
\n \n scout_apm (2.6.9) lib/scout_apm/middleware.rb:20:in `call'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector.rb:53:in `block in call'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:58:in `block (2 levels) in read_from_replica'\n \n
\n \ \n activesupport (6.0.3.5) lib/active_support/notifications/instrumenter.rb:24:in `instrument'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:57:in `block in read_from_replica'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:1040:in `while_preventing_writes'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:122:in `block in connected_to'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:251:in `swap_connection_handler'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:159:in `with_handler'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:121:in `connected_to'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:56:in `read_from_replica'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:38:in `read'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector.rb:63:in `select_database'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector.rb:52:in `call'\n \n
\n \n warden (1.2.8) lib/warden/manager.rb:36:in `block in call'\n \n
\n \n warden (1.2.8) lib/warden/manager.rb:34:in `catch'\n \ \n
\n \n \ warden (1.2.8) lib/warden/manager.rb:34:in `call'\n \n \
\n \n rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'\n \n
\n \n rack (2.2.3) lib/rack/etag.rb:27:in `call'\n \ \n
\n \n \ rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'\n \n \
\n \n rack (2.2.3) lib/rack/head.rb:12:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/http/content_security_policy.rb:18:in `call'\n \n
\n \n rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'\n \n
\n \n rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/cookies.rb:648:in `call'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/migration.rb:567:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/callbacks.rb:101:in `run_callbacks'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/callbacks.rb:26:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/executor.rb:14:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'\n \n
\n \n rollbar (2.27.0) lib/rollbar/middleware/rails/rollbar.rb:25:in `block in call'\n \n
\n \n rollbar (2.27.0) lib/rollbar.rb:145:in `scoped'\n \ \n
\n \n \ rollbar (2.27.0) lib/rollbar/middleware/rails/rollbar.rb:22:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'\n \n
\n \n rollbar (2.27.0) lib/rollbar/middleware/rails/show_exceptions.rb:22:in `call_with_rollbar'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:132:in `call_app'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:28:in `block in call'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:17:in `catch'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:17:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'\n \n
\n \n railties (6.0.3.5) lib/rails/rack/logger.rb:37:in `call_app'\n \n
\n \n railties (6.0.3.5) lib/rails/rack/logger.rb:26:in `block in call'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/tagged_logging.rb:80:in `block in tagged'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/tagged_logging.rb:28:in `tagged'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/tagged_logging.rb:80:in `tagged'\n \n
\n \n railties (6.0.3.5) lib/rails/rack/logger.rb:26:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'\n \n
\n \n request_store (1.5.0) lib/request_store/middleware.rb:19:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/request_id.rb:27:in `call'\n \n
\n \n rack (2.2.3) lib/rack/method_override.rb:24:in `call'\n \ \n
\n \n \ rack (2.2.3) lib/rack/runtime.rb:22:in `call'\n \n \
\n \n activesupport (6.0.3.5) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/executor.rb:14:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/static.rb:126:in `call'\n \n
\n \n rack (2.2.3) lib/rack/sendfile.rb:110:in `call'\n \ \n
\n \n \ actionpack (6.0.3.5) lib/action_dispatch/middleware/host_authorization.rb:82:in `call'\n \n
\n \n railties (6.0.3.5) lib/rails/engine.rb:527:in `call'\n \ \n
\n \n \ puma (4.3.5) lib/puma/configuration.rb:228:in `call'\n \n \
\n \n puma (4.3.5) lib/puma/server.rb:713:in `handle_request'\n \n
\n \n puma (4.3.5) lib/puma/server.rb:472:in `process_client'\n \ \n
\n \n \ puma (4.3.5) lib/puma/server.rb:328:in `block in run'\n \n \
\n \n puma (4.3.5) lib/puma/thread_pool.rb:134:in `block in spawn_thread'\n \n
\n
\n \
\n
\n \n \n \ app/api/v1/bank_clients.rb:77:in `block (2 levels) in <class:BankClients>'\n \ \n
\n \n \ grape (0.9.0) lib/grape/endpoint.rb:45:in `call'\n \n \
\n \n grape (0.9.0) lib/grape/endpoint.rb:45:in `block in generate_api_method'\n \n
\n \n grape (0.9.0) lib/grape/endpoint.rb:220:in `run'\n \n
\n \n reduce_scout_transactions (54b8e9990efb) lib/reduce_scout_transactions/frameworks/grape.rb:8:in `run_with_reduce_scout_transactions'\n \n
\n \ \n grape (0.9.0) lib/grape/endpoint.rb:171:in `block in call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:24:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:18:in `call'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:24:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:18:in `call'\n \n
\n \n grape (0.9.0) lib/grape/middleware/error.rb:27:in `block in call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/error.rb:26:in `catch'\n \n
\n \n grape (0.9.0) lib/grape/middleware/error.rb:26:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/middleware/base.rb:18:in `call'\n \n
\n \n rack (2.2.3) lib/rack/head.rb:12:in `call'\n \ \n
\n \n \ rack (2.2.3) lib/rack/builder.rb:244:in `call'\n \n \
\n \n grape (0.9.0) lib/grape/endpoint.rb:172:in `call!'\n \n
\n \n grape (0.9.0) lib/grape/endpoint.rb:160:in `call'\n \ \n
\n \n \ rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/code_generation.rb:68:in `optimized_each'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'\n \n
\n \n rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'\n \n
\n \n grape (0.9.0) lib/grape/api.rb:128:in `call'\n \ \n
\n \n \ grape (0.9.0) lib/grape/api.rb:43:in `call!'\n \n \
\n \n grape (0.9.0) lib/grape/api.rb:39:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'\n \n
\n \ \n actionpack (6.0.3.5) lib/action_dispatch/routing/mapper.rb:48:in `serve'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/journey/router.rb:49:in `block in serve'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/journey/router.rb:32:in `each'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/journey/router.rb:32:in `serve'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/routing/route_set.rb:834:in `call'\n \n
\n \n omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'\n \n
\n \n omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'\n \n
\n \n omniauth (1.9.1) lib/omniauth/builder.rb:45:in `call'\n \ \n
\n \n \ bullet (6.1.0) lib/bullet/rack.rb:15:in `call'\n \n \
\n \n scout_apm (2.6.9) lib/scout_apm/instant/middleware.rb:53:in `call'\n \n
\n \n scout_apm (2.6.9) lib/scout_apm/middleware.rb:20:in `call'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector.rb:53:in `block in call'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:58:in `block (2 levels) in read_from_replica'\n \n
\n \ \n activesupport (6.0.3.5) lib/active_support/notifications/instrumenter.rb:24:in `instrument'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:57:in `block in read_from_replica'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:1040:in `while_preventing_writes'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:122:in `block in connected_to'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:251:in `swap_connection_handler'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:159:in `with_handler'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/connection_handling.rb:121:in `connected_to'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:56:in `read_from_replica'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector/resolver.rb:38:in `read'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector.rb:63:in `select_database'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/middleware/database_selector.rb:52:in `call'\n \n
\n \n warden (1.2.8) lib/warden/manager.rb:36:in `block in call'\n \n
\n \n warden (1.2.8) lib/warden/manager.rb:34:in `catch'\n \ \n
\n \n \ warden (1.2.8) lib/warden/manager.rb:34:in `call'\n \n \
\n \n rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'\n \n
\n \n rack (2.2.3) lib/rack/etag.rb:27:in `call'\n \ \n
\n \n \ rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'\n \n \
\n \n rack (2.2.3) lib/rack/head.rb:12:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/http/content_security_policy.rb:18:in `call'\n \n
\n \n rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'\n \n
\n \n rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/cookies.rb:648:in `call'\n \n
\n \n activerecord (6.0.3.5) lib/active_record/migration.rb:567:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/callbacks.rb:101:in `run_callbacks'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/callbacks.rb:26:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/executor.rb:14:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'\n \n
\n \n rollbar (2.27.0) lib/rollbar/middleware/rails/rollbar.rb:25:in `block in call'\n \n
\n \n rollbar (2.27.0) lib/rollbar.rb:145:in `scoped'\n \ \n
\n \n \ rollbar (2.27.0) lib/rollbar/middleware/rails/rollbar.rb:22:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'\n \n
\n \n rollbar (2.27.0) lib/rollbar/middleware/rails/show_exceptions.rb:22:in `call_with_rollbar'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:132:in `call_app'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:28:in `block in call'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:17:in `catch'\n \n
\n \n web-console (4.0.4) lib/web_console/middleware.rb:17:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'\n \n
\n \n railties (6.0.3.5) lib/rails/rack/logger.rb:37:in `call_app'\n \n
\n \n railties (6.0.3.5) lib/rails/rack/logger.rb:26:in `block in call'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/tagged_logging.rb:80:in `block in tagged'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/tagged_logging.rb:28:in `tagged'\n \n
\n \n activesupport (6.0.3.5) lib/active_support/tagged_logging.rb:80:in `tagged'\n \n
\n \n railties (6.0.3.5) lib/rails/rack/logger.rb:26:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'\n \n
\n \n request_store (1.5.0) lib/request_store/middleware.rb:19:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/request_id.rb:27:in `call'\n \n
\n \n rack (2.2.3) lib/rack/method_override.rb:24:in `call'\n \ \n
\n \n \ rack (2.2.3) lib/rack/runtime.rb:22:in `call'\n \n \
\n \n activesupport (6.0.3.5) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/executor.rb:14:in `call'\n \n
\n \n actionpack (6.0.3.5) lib/action_dispatch/middleware/static.rb:126:in `call'\n \n
\n \n rack (2.2.3) lib/rack/sendfile.rb:110:in `call'\n \ \n
\n \n \ actionpack (6.0.3.5) lib/action_dispatch/middleware/host_authorization.rb:82:in `call'\n \n
\n \n app/lib/cloud_flare_middleware.rb:15:in `call'\n \ \n
\n \n \ railties (6.0.3.5) lib/rails/engine.rb:527:in `call'\n \n \
\n \n puma (4.3.5) lib/puma/configuration.rb:228:in `call'\n \n
\n \n puma (4.3.5) lib/puma/server.rb:713:in `handle_request'\n \ \n
\n \n \ puma (4.3.5) lib/puma/server.rb:472:in `process_client'\n \ \n
\n \n \ puma (4.3.5) lib/puma/server.rb:328:in `block in run'\n \n \
\n \n puma (4.3.5) lib/puma/thread_pool.rb:134:in `block in spawn_thread'\n \n
\n
\n \
\n\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\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
\n
\n\n\n\n\n\n\n\n \ \n\n\n\n\n" http_version: recorded_at: Fri, 21 Jan 2022 07:42:16 GMT recorded_with: VCR 2.6.0