Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.92 KB | None | 0 0
  1. heroku run bin/rake shipments:notify_easypost_of_new_shipments
  2. Running bin/rake shipments:notify_easypost_of_new_shipments on ⬢ tillak-shop... up, run.3892 (Standard-1X)
  3. D, [2019-03-08T17:15:12.387765 #4] DEBUG -- :   Spree::StockLocation Load (1.9ms)  SELECT  "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = $1 AND "spree_stock_locations"."name" = $2 LIMIT $3  [["active", true], ["name", "Easypost"], ["LIMIT", 1]]
  4. D, [2019-03-08T17:15:12.460278 #4] DEBUG -- :   Spree::Shipment Load (1.6ms)  SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."state" = $1 AND "spree_shipments"."stock_location_id" = $2  [["state", "ready"], ["stock_location_id", 3]]
  5. I, [2019-03-08T17:15:12.498069 #4]  INFO -- : Notifying about #<Spree::Shipment id: 902, tracking: nil, number: "H57162885733", cost: 0.822e1, shipped_at: nil, order_id: 1179, deprecated_address_id: nil, state: "ready", created_at: "2019-03-08 17:10:06", updated_at: "2019-03-08 17:10:15", stock_location_id: 3, adjustment_total: 0.0, additional_tax_total: 0.0, promo_total: 0.0, included_tax_total: 0.0>...
  6.  
  7. D, [2019-03-08T17:15:12.518051 #4] DEBUG -- :   Spree::Order Load (1.6ms)  SELECT  "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = $1 LIMIT $2  [["id", 1179], ["LIMIT", 1]]
  8. D, [2019-03-08T17:15:12.598227 #4] DEBUG -- :   Spree::Address Load (1.6ms)  SELECT  "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = $1 LIMIT $2  [["id", 888], ["LIMIT", 1]]
  9. D, [2019-03-08T17:15:12.627073 #4] DEBUG -- :   Spree::Country Load (0.8ms)  SELECT  "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = $1 LIMIT $2  [["id", 43], ["LIMIT", 1]]
  10. D, [2019-03-08T17:15:12.646152 #4] DEBUG -- :   Spree::State Load (0.8ms)  SELECT  "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = $1 LIMIT $2  [["id", 488], ["LIMIT", 1]]
  11. D, [2019-03-08T17:15:12.690285 #4] DEBUG -- :   Spree::LineItem Load (2.2ms)  SELECT DISTINCT "spree_line_items".* FROM "spree_line_items" INNER JOIN "spree_inventory_units" ON "spree_line_items"."id" = "spree_inventory_units"."line_item_id" WHERE "spree_inventory_units"."shipment_id" = $1  [["shipment_id", 902]]
  12. D, [2019-03-08T17:15:12.731227 #4] DEBUG -- :   Spree::Variant Load (1.5ms)  SELECT  "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = $1 LIMIT $2  [["id", 51], ["LIMIT", 1]]
  13. I, [2019-03-08T17:15:12.749246 #4]  INFO -- : POST https://api.easypost.com/fulfillment/vendor/v2/orders, body: {:basic_auth=>{:username=>"pKgDAa123BDroD4xgfUfpg", :password=>""}, :headers=>{"Content-Type"=>"application/json"}, :body=>"{\"service\":\"international\",\"destination\":{\"name\":\"Regula Benz\",\"city\":\"Thun\",\"state\":\"BE\",\"zip\":\"3604\",\"country\":\"CH\",\"street1\":\"Neufeldstrasse 8 \",\"street2\":\"\",\"residential\":true},\"line_items\":[{\"product\":{\"barcode\":\"853381008116\"},\"units\":1}]}"}
  14. I, [2019-03-08T17:15:13.631933 #4]  INFO -- : Shipment #<Spree::Shipment:0x000055f0c611e5b0> was successfully created in Easypost: {"id":"order_68febb96f7b2474d90a9f76a5a3c6820","object":"Order","created_at":1552065313,"updated_at":1552065313,"disabled_at":null,"mode":"production","latest_delivery":"2019-03-20","description":null,"destination":{"id":"adr_1690964cda2d44709f5b82b49b9a96fc","object":"Address","created_at":1552065313,"updated_at":1552065313,"disabled_at":null,"mode":"production","name":"REGULA BENZ","company":null,"street1":"NEUFELDSTRASSE 8","street2":"","city":"THUN","state":"BE","zip":"3604","country":"CH","phone":"4158573102","email":null,"residential":true,"federal_tax_id":null,"state_tax_id":null},"status":"created","fees":[{"id":"fee_37c70c58dd8e442fb38bd9d6332e8606","object":"Fee","created_at":1552065313,"updated_at":1552065313,"disabled_at":null,"mode":"production","amount":"10.84000","charged":true,"refunded":false,"type":"order"}],"inserts":[],"line_items":[{"id":"oli_a23a90a653e948759785e6abfcc00884","object":"OrderLineItem","created_at":1552065313,"updated_at":1552065313,"disabled_at":null,"mode":"production","units":1,"product":{"id":"prod_f33f368aca1e431d9296eb23856730d2","object":"Product","created_at":1539226400,"updated_at":1539226400,"disabled_at":null,"mode":"production","title":"Wallowa Camp Hat - Midnight Blue","barcode":"853381008116","type":"merchandise","origin_country":"CN","hs_code":"6505.00.9089","length":{"value":6.0,"unit":"IN"},"width":{"value":8.0,"unit":"IN"},"height":{"value":1.0,"unit":"IN"},"weight":{"value":3.0,"unit":"OZ"},"price":{"value":22.95,"unit":"USD"},"hazmat":null,"requires_serial_tracking":false}}],"picks":[],"shipment_options":{}}
  15. D, [2019-03-08T17:15:13.634880 #4] DEBUG -- :   Spree::Shipment Update (2.0ms)  UPDATE "spree_shipments" SET "tracking" = $1 WHERE "spree_shipments"."id" = $2  [["tracking", nil], ["id", 902]]
  16. D, [2019-03-08T17:15:13.636231 #4] DEBUG -- :    (0.5ms)  BEGIN
  17. D, [2019-03-08T17:15:13.638852 #4] DEBUG -- :   Spree::Shipment Update (0.8ms)  UPDATE "spree_shipments" SET "state" = $1, "updated_at" = $2 WHERE "spree_shipments"."id" = $3  [["state", "processing"], ["updated_at", "2019-03-08 17:15:13.636960"], ["id", 902]]
  18. D, [2019-03-08T17:15:13.642082 #4] DEBUG -- :   Spree::Order Update (0.9ms)  UPDATE "spree_orders" SET "updated_at" = $1 WHERE "spree_orders"."id" = $2  [["updated_at", "2019-03-08 17:15:13.639616"], ["id", 1179]]
  19. D, [2019-03-08T17:15:13.643515 #4] DEBUG -- :    (1.3ms)  COMMIT
  20. D, [2019-03-08T17:15:13.670172 #4] DEBUG -- :    (0.6ms)  BEGIN
  21. D, [2019-03-08T17:15:13.674206 #4] DEBUG -- :   Spree::StateChange Create (2.1ms)  INSERT INTO "spree_state_changes" ("name", "previous_state", "stateful_id", "stateful_type", "next_state", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["name", "shipment"], ["previous_state", "ready"], ["stateful_id", 902], ["stateful_type", "Spree::Shipment"], ["next_state", "processing"], ["created_at", "2019-03-08 17:15:13.670827"], ["updated_at", "2019-03-08 17:15:13.670827"]]
  22. D, [2019-03-08T17:15:13.676536 #4] DEBUG -- :    (1.8ms)  COMMIT
  23. D, [2019-03-08T17:15:13.676836 #4] DEBUG -- : **Airbrake: closed
  24. D, [2019-03-08T17:15:13.698994 #4] DEBUG -- :   Spree::Order Load (3.9ms)  SELECT  "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = $1 LIMIT $2  [["id", 1179], ["LIMIT", 1]]
  25. D, [2019-03-08T17:15:13.712852 #4] DEBUG -- :   Spree::Address Load (1.4ms)  SELECT  "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = $1 LIMIT $2  [["id", 888], ["LIMIT", 1]]
  26. I, [2019-03-08T17:15:13.777216 #4]  INFO -- : Pausing to allow workers to finish...
  27. D, [2019-03-08T17:15:13.810271 #4] DEBUG -- :   Spree::LineItem Load (1.1ms)  SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 ORDER BY "spree_line_items"."created_at" ASC, "spree_line_items"."id" ASC  [["order_id", 1179]]
  28. D, [2019-03-08T17:15:13.816191 #4] DEBUG -- :   Spree::Variant Load (1.0ms)  SELECT  "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = $1 LIMIT $2  [["id", 51], ["LIMIT", 1]]
  29. D, [2019-03-08T17:15:13.844569 #4] DEBUG -- :   Spree::Product Load (1.5ms)  SELECT  "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
  30. D, [2019-03-08T17:15:13.890501 #4] DEBUG -- :   Spree::OptionValue Load (1.3ms)  SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = $1  [["variant_id", 51]]
  31. D, [2019-03-08T17:15:13.915117 #4] DEBUG -- :   Spree::OptionType Load (0.9ms)  SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = $1 ORDER BY "spree_option_types"."position" ASC  [["id", 1]]
  32. D, [2019-03-08T17:15:13.989328 #4] DEBUG -- :   Spree::OptionValue Load (0.9ms)  SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = $1  [["variant_id", 51]]
  33. D, [2019-03-08T17:15:13.991036 #4] DEBUG -- :   Spree::OptionType Load (0.7ms)  SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = $1 ORDER BY "spree_option_types"."position" ASC  [["id", 1]]
  34. D, [2019-03-08T17:15:13.994531 #4] DEBUG -- :   Spree::Variant Load (0.8ms)  SELECT  "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = $1 AND "spree_variants"."is_master" = $2 LIMIT $3  [["product_id", 2], ["is_master", true], ["LIMIT", 1]]
  35. D, [2019-03-08T17:15:14.009925 #4] DEBUG -- :   Spree::Price Load (2.0ms)  SELECT  "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = $1 AND "spree_prices"."currency" = $2 AND "spree_prices"."country_iso" IS NULL ORDER BY country_iso IS NULL, "spree_prices"."updated_at" DESC, "spree_prices"."id" DESC LIMIT $3  [["variant_id", 2], ["currency", "USD"], ["LIMIT", 1]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement