Skip to content

Instantly share code, notes, and snippets.

@lmon
Created October 21, 2019 19:57
Show Gist options
  • Save lmon/07cbaa4cdb7faa5e5fc25819066ab05b to your computer and use it in GitHub Desktop.
Save lmon/07cbaa4cdb7faa5e5fc25819066ab05b to your computer and use it in GitHub Desktop.
2019-10-21T15:56:30] DEBUG ActiveRecord::Base : UserBillingGatewayInfo Load (0.9ms) SELECT "user_billing_gateway_infos".* FROM "user_billing_gateway_infos" WHERE "user_billing_gateway_infos"."gateway" = $1 AND "user_billing_gateway_infos"."token" = $2 LIMIT $3 [["gateway", "worldpay"], ["token", "4111111518931111"], ["LIMIT", 1]]
[2019-10-21T15:56:30] DEBUG ActiveRecord::Base : UserBillingInfo Load (0.9ms) SELECT "user_billing_infos".* FROM "user_billing_infos" WHERE "user_billing_infos"."hidden" = $1 AND "user_billing_infos"."id" = $2 [["hidden", false], ["id", 424226]]
[2019-10-21T15:56:30] INFO Rails : {"method":"POST","path":"/shop/admin/rmas/create","format":"html","controller":"Shop::Admin::RmasController","action":"create_rma","status":500,"error":"RuntimeError: Invalid payment method ''","duration":683.36,"view":0.0,"db":301.3,"dd":{"trace_id":8961126303114190952,"span_id":8636043102367750020},"ddsource":["ruby"],"http_status":null,"user_agent":null,"remote_addr":null,"tracking_code":null,"cf_ip_country":null,"params":{"basket_item_ids":"[4464825]","4464825":{"basket_item_id":["4464825"],"merchant_reason":["defective"],"customer_request":["return"],"customer_reason":["too_big"]},"commit":"Create RMA"}}
[2019-10-21T15:56:30] DEBUG ActiveRecord::Base : Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-21 19:56:30.711359', locked_by = ' host:ip-172-31-73-14.ec2.internal pid:861' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-21 19:56:30.710669' AND (locked_at IS NULL OR locked_at < '2019-10-21 15:56:30.710696') OR locked_by = ' host:ip-172-31-73-14.ec2.internal pid:861') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
[2019-10-21T15:56:30] FATAL Rails :
[2019-10-21T15:56:30] FATAL Rails : RuntimeError (Invalid payment method ''):
[2019-10-21T15:56:30] FATAL Rails :
[2019-10-21T15:56:30] FATAL Rails : app/classes/shop/payment_gateway_integration.rb:362:in `verify_payment_method_hash'
app/classes/shop/payment_gateway_integration.rb:146:in `verify_find_payment_method_output'
app/classes/shop/payment_gateway_integration.rb:79:in `call'
app/classes/shop/payment_gateway_integration.rb:79:in `block (2 levels) in <module:RequiredGatewayIntegrationMethods>'
app/classes/shop/order_return_service.rb:1613:in `refund_methods'
app/classes/shop/order_return_service.rb:1647:in `rma_refund_methods_hash'
app/classes/shop/order_return_service.rb:97:in `rma_display_data'
app/classes/shop/order_return_service.rb:52:in `create_rma'
app/controllers/shop/admin/rmas_controller.rb:41:in `create_rma'
[2019-10-21T15:56:30] DEBUG ActiveRecord::Base : Delayed::Backend::ActiveRecord::Job Load (1.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-10-21 19:56:30.724752', locked_by = ' host:ip-172-31-73-14.ec2.internal pid:2709' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-10-21 19:56:30.724256' AND (locked_at IS NULL OR locked_at < '2019-10-21 15:56:30.724293') OR locked_by = ' host:ip-172-31-73-14.ec2.internal pid:2709') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment