Advertisement
Guest User

Error Response

a guest
May 21st, 2017
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 14.81 KB | None | 0 0
  1. {
  2.   "status": 404,
  3.   "error": "Not Found",
  4.   "exception": "#<ActiveRecord::RecordNotFound: Couldn't find User with 'id'=5>",
  5.   "traces": {
  6.     "Application Trace": [
  7.       {
  8.         "id": 1,
  9.         "trace": "app/controllers/users_controller.rb:44:in `set_user'"
  10.       }
  11.     ],
  12.     "Framework Trace": [
  13.       {
  14.         "id": 0,
  15.         "trace": "activerecord (5.1.1) lib/active_record/core.rb:189:in `find'"
  16.       },
  17.       {
  18.         "id": 2,
  19.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:413:in `block in make_lambda'"
  20.       },
  21.       {
  22.         "id": 3,
  23.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:178:in `block (2 levels) in halting_and_conditional'"
  24.       },
  25.       {
  26.         "id": 4,
  27.         "trace": "actionpack (5.1.1) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'"
  28.       },
  29.       {
  30.         "id": 5,
  31.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:179:in `block in halting_and_conditional'"
  32.       },
  33.       {
  34.         "id": 6,
  35.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:507:in `block in invoke_before'"
  36.       },
  37.       {
  38.         "id": 7,
  39.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:507:in `each'"
  40.       },
  41.       {
  42.         "id": 8,
  43.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:507:in `invoke_before'"
  44.       },
  45.       {
  46.         "id": 9,
  47.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:130:in `run_callbacks'"
  48.       },
  49.       {
  50.         "id": 10,
  51.         "trace": "actionpack (5.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action'"
  52.       },
  53.       {
  54.         "id": 11,
  55.         "trace": "actionpack (5.1.1) lib/action_controller/metal/rescue.rb:20:in `process_action'"
  56.       },
  57.       {
  58.         "id": 12,
  59.         "trace": "actionpack (5.1.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'"
  60.       },
  61.       {
  62.         "id": 13,
  63.         "trace": "activesupport (5.1.1) lib/active_support/notifications.rb:166:in `block in instrument'"
  64.       },
  65.       {
  66.         "id": 14,
  67.         "trace": "activesupport (5.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'"
  68.       },
  69.       {
  70.         "id": 15,
  71.         "trace": "activesupport (5.1.1) lib/active_support/notifications.rb:166:in `instrument'"
  72.       },
  73.       {
  74.         "id": 16,
  75.         "trace": "actionpack (5.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'"
  76.       },
  77.       {
  78.         "id": 17,
  79.         "trace": "actionpack (5.1.1) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'"
  80.       },
  81.       {
  82.         "id": 18,
  83.         "trace": "activerecord (5.1.1) lib/active_record/railties/controller_runtime.rb:22:in `process_action'"
  84.       },
  85.       {
  86.         "id": 19,
  87.         "trace": "actionpack (5.1.1) lib/abstract_controller/base.rb:124:in `process'"
  88.       },
  89.       {
  90.         "id": 20,
  91.         "trace": "actionpack (5.1.1) lib/action_controller/metal.rb:189:in `dispatch'"
  92.       },
  93.       {
  94.         "id": 21,
  95.         "trace": "actionpack (5.1.1) lib/action_controller/metal.rb:253:in `dispatch'"
  96.       },
  97.       {
  98.         "id": 22,
  99.         "trace": "actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'"
  100.       },
  101.       {
  102.         "id": 23,
  103.         "trace": "actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:31:in `serve'"
  104.       },
  105.       {
  106.         "id": 24,
  107.         "trace": "actionpack (5.1.1) lib/action_dispatch/journey/router.rb:46:in `block in serve'"
  108.       },
  109.       {
  110.         "id": 25,
  111.         "trace": "actionpack (5.1.1) lib/action_dispatch/journey/router.rb:33:in `each'"
  112.       },
  113.       {
  114.         "id": 26,
  115.         "trace": "actionpack (5.1.1) lib/action_dispatch/journey/router.rb:33:in `serve'"
  116.       },
  117.       {
  118.         "id": 27,
  119.         "trace": "actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:832:in `call'"
  120.       },
  121.       {
  122.         "id": 28,
  123.         "trace": "rack (2.0.3) lib/rack/etag.rb:25:in `call'"
  124.       },
  125.       {
  126.         "id": 29,
  127.         "trace": "rack (2.0.3) lib/rack/conditional_get.rb:25:in `call'"
  128.       },
  129.       {
  130.         "id": 30,
  131.         "trace": "rack (2.0.3) lib/rack/head.rb:12:in `call'"
  132.       },
  133.       {
  134.         "id": 31,
  135.         "trace": "activerecord (5.1.1) lib/active_record/migration.rb:556:in `call'"
  136.       },
  137.       {
  138.         "id": 32,
  139.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'"
  140.       },
  141.       {
  142.         "id": 33,
  143.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:97:in `run_callbacks'"
  144.       },
  145.       {
  146.         "id": 34,
  147.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/callbacks.rb:24:in `call'"
  148.       },
  149.       {
  150.         "id": 35,
  151.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/executor.rb:12:in `call'"
  152.       },
  153.       {
  154.         "id": 36,
  155.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'"
  156.       },
  157.       {
  158.         "id": 37,
  159.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'"
  160.       },
  161.       {
  162.         "id": 38,
  163.         "trace": "railties (5.1.1) lib/rails/rack/logger.rb:36:in `call_app'"
  164.       },
  165.       {
  166.         "id": 39,
  167.         "trace": "railties (5.1.1) lib/rails/rack/logger.rb:24:in `block in call'"
  168.       },
  169.       {
  170.         "id": 40,
  171.         "trace": "activesupport (5.1.1) lib/active_support/tagged_logging.rb:69:in `block in tagged'"
  172.       },
  173.       {
  174.         "id": 41,
  175.         "trace": "activesupport (5.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'"
  176.       },
  177.       {
  178.         "id": 42,
  179.         "trace": "activesupport (5.1.1) lib/active_support/tagged_logging.rb:69:in `tagged'"
  180.       },
  181.       {
  182.         "id": 43,
  183.         "trace": "railties (5.1.1) lib/rails/rack/logger.rb:24:in `call'"
  184.       },
  185.       {
  186.         "id": 44,
  187.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'"
  188.       },
  189.       {
  190.         "id": 45,
  191.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/request_id.rb:25:in `call'"
  192.       },
  193.       {
  194.         "id": 46,
  195.         "trace": "rack (2.0.3) lib/rack/runtime.rb:22:in `call'"
  196.       },
  197.       {
  198.         "id": 47,
  199.         "trace": "activesupport (5.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'"
  200.       },
  201.       {
  202.         "id": 48,
  203.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/executor.rb:12:in `call'"
  204.       },
  205.       {
  206.         "id": 49,
  207.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/static.rb:125:in `call'"
  208.       },
  209.       {
  210.         "id": 50,
  211.         "trace": "rack (2.0.3) lib/rack/sendfile.rb:111:in `call'"
  212.       },
  213.       {
  214.         "id": 51,
  215.         "trace": "railties (5.1.1) lib/rails/engine.rb:522:in `call'"
  216.       },
  217.       {
  218.         "id": 52,
  219.         "trace": "puma (3.8.2) lib/puma/configuration.rb:224:in `call'"
  220.       },
  221.       {
  222.         "id": 53,
  223.         "trace": "puma (3.8.2) lib/puma/server.rb:600:in `handle_request'"
  224.       },
  225.       {
  226.         "id": 54,
  227.         "trace": "puma (3.8.2) lib/puma/server.rb:435:in `process_client'"
  228.       },
  229.       {
  230.         "id": 55,
  231.         "trace": "puma (3.8.2) lib/puma/server.rb:299:in `block in run'"
  232.       },
  233.       {
  234.         "id": 56,
  235.         "trace": "puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'"
  236.       }
  237.     ],
  238.     "Full Trace": [
  239.       {
  240.         "id": 0,
  241.         "trace": "activerecord (5.1.1) lib/active_record/core.rb:189:in `find'"
  242.       },
  243.       {
  244.         "id": 1,
  245.         "trace": "app/controllers/users_controller.rb:44:in `set_user'"
  246.       },
  247.       {
  248.         "id": 2,
  249.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:413:in `block in make_lambda'"
  250.       },
  251.       {
  252.         "id": 3,
  253.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:178:in `block (2 levels) in halting_and_conditional'"
  254.       },
  255.       {
  256.         "id": 4,
  257.         "trace": "actionpack (5.1.1) lib/abstract_controller/callbacks.rb:12:in `block (2 levels) in <module:Callbacks>'"
  258.       },
  259.       {
  260.         "id": 5,
  261.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:179:in `block in halting_and_conditional'"
  262.       },
  263.       {
  264.         "id": 6,
  265.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:507:in `block in invoke_before'"
  266.       },
  267.       {
  268.         "id": 7,
  269.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:507:in `each'"
  270.       },
  271.       {
  272.         "id": 8,
  273.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:507:in `invoke_before'"
  274.       },
  275.       {
  276.         "id": 9,
  277.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:130:in `run_callbacks'"
  278.       },
  279.       {
  280.         "id": 10,
  281.         "trace": "actionpack (5.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action'"
  282.       },
  283.       {
  284.         "id": 11,
  285.         "trace": "actionpack (5.1.1) lib/action_controller/metal/rescue.rb:20:in `process_action'"
  286.       },
  287.       {
  288.         "id": 12,
  289.         "trace": "actionpack (5.1.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'"
  290.       },
  291.       {
  292.         "id": 13,
  293.         "trace": "activesupport (5.1.1) lib/active_support/notifications.rb:166:in `block in instrument'"
  294.       },
  295.       {
  296.         "id": 14,
  297.         "trace": "activesupport (5.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'"
  298.       },
  299.       {
  300.         "id": 15,
  301.         "trace": "activesupport (5.1.1) lib/active_support/notifications.rb:166:in `instrument'"
  302.       },
  303.       {
  304.         "id": 16,
  305.         "trace": "actionpack (5.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'"
  306.       },
  307.       {
  308.         "id": 17,
  309.         "trace": "actionpack (5.1.1) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'"
  310.       },
  311.       {
  312.         "id": 18,
  313.         "trace": "activerecord (5.1.1) lib/active_record/railties/controller_runtime.rb:22:in `process_action'"
  314.       },
  315.       {
  316.         "id": 19,
  317.         "trace": "actionpack (5.1.1) lib/abstract_controller/base.rb:124:in `process'"
  318.       },
  319.       {
  320.         "id": 20,
  321.         "trace": "actionpack (5.1.1) lib/action_controller/metal.rb:189:in `dispatch'"
  322.       },
  323.       {
  324.         "id": 21,
  325.         "trace": "actionpack (5.1.1) lib/action_controller/metal.rb:253:in `dispatch'"
  326.       },
  327.       {
  328.         "id": 22,
  329.         "trace": "actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'"
  330.       },
  331.       {
  332.         "id": 23,
  333.         "trace": "actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:31:in `serve'"
  334.       },
  335.       {
  336.         "id": 24,
  337.         "trace": "actionpack (5.1.1) lib/action_dispatch/journey/router.rb:46:in `block in serve'"
  338.       },
  339.       {
  340.         "id": 25,
  341.         "trace": "actionpack (5.1.1) lib/action_dispatch/journey/router.rb:33:in `each'"
  342.       },
  343.       {
  344.         "id": 26,
  345.         "trace": "actionpack (5.1.1) lib/action_dispatch/journey/router.rb:33:in `serve'"
  346.       },
  347.       {
  348.         "id": 27,
  349.         "trace": "actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:832:in `call'"
  350.       },
  351.       {
  352.         "id": 28,
  353.         "trace": "rack (2.0.3) lib/rack/etag.rb:25:in `call'"
  354.       },
  355.       {
  356.         "id": 29,
  357.         "trace": "rack (2.0.3) lib/rack/conditional_get.rb:25:in `call'"
  358.       },
  359.       {
  360.         "id": 30,
  361.         "trace": "rack (2.0.3) lib/rack/head.rb:12:in `call'"
  362.       },
  363.       {
  364.         "id": 31,
  365.         "trace": "activerecord (5.1.1) lib/active_record/migration.rb:556:in `call'"
  366.       },
  367.       {
  368.         "id": 32,
  369.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'"
  370.       },
  371.       {
  372.         "id": 33,
  373.         "trace": "activesupport (5.1.1) lib/active_support/callbacks.rb:97:in `run_callbacks'"
  374.       },
  375.       {
  376.         "id": 34,
  377.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/callbacks.rb:24:in `call'"
  378.       },
  379.       {
  380.         "id": 35,
  381.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/executor.rb:12:in `call'"
  382.       },
  383.       {
  384.         "id": 36,
  385.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'"
  386.       },
  387.       {
  388.         "id": 37,
  389.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'"
  390.       },
  391.       {
  392.         "id": 38,
  393.         "trace": "railties (5.1.1) lib/rails/rack/logger.rb:36:in `call_app'"
  394.       },
  395.       {
  396.         "id": 39,
  397.         "trace": "railties (5.1.1) lib/rails/rack/logger.rb:24:in `block in call'"
  398.       },
  399.       {
  400.         "id": 40,
  401.         "trace": "activesupport (5.1.1) lib/active_support/tagged_logging.rb:69:in `block in tagged'"
  402.       },
  403.       {
  404.         "id": 41,
  405.         "trace": "activesupport (5.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'"
  406.       },
  407.       {
  408.         "id": 42,
  409.         "trace": "activesupport (5.1.1) lib/active_support/tagged_logging.rb:69:in `tagged'"
  410.       },
  411.       {
  412.         "id": 43,
  413.         "trace": "railties (5.1.1) lib/rails/rack/logger.rb:24:in `call'"
  414.       },
  415.       {
  416.         "id": 44,
  417.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'"
  418.       },
  419.       {
  420.         "id": 45,
  421.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/request_id.rb:25:in `call'"
  422.       },
  423.       {
  424.         "id": 46,
  425.         "trace": "rack (2.0.3) lib/rack/runtime.rb:22:in `call'"
  426.       },
  427.       {
  428.         "id": 47,
  429.         "trace": "activesupport (5.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'"
  430.       },
  431.       {
  432.         "id": 48,
  433.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/executor.rb:12:in `call'"
  434.       },
  435.       {
  436.         "id": 49,
  437.         "trace": "actionpack (5.1.1) lib/action_dispatch/middleware/static.rb:125:in `call'"
  438.       },
  439.       {
  440.         "id": 50,
  441.         "trace": "rack (2.0.3) lib/rack/sendfile.rb:111:in `call'"
  442.       },
  443.       {
  444.         "id": 51,
  445.         "trace": "railties (5.1.1) lib/rails/engine.rb:522:in `call'"
  446.       },
  447.       {
  448.         "id": 52,
  449.         "trace": "puma (3.8.2) lib/puma/configuration.rb:224:in `call'"
  450.       },
  451.       {
  452.         "id": 53,
  453.         "trace": "puma (3.8.2) lib/puma/server.rb:600:in `handle_request'"
  454.       },
  455.       {
  456.         "id": 54,
  457.         "trace": "puma (3.8.2) lib/puma/server.rb:435:in `process_client'"
  458.       },
  459.       {
  460.         "id": 55,
  461.         "trace": "puma (3.8.2) lib/puma/server.rb:299:in `block in run'"
  462.       },
  463.       {
  464.         "id": 56,
  465.         "trace": "puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'"
  466.       }
  467.     ]
  468.   }
  469. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement