Skip to content

Instantly share code, notes, and snippets.

@hubertlepicki
Last active October 13, 2017 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hubertlepicki/d71e6c1907cc5e0ec446d8204bfff03f to your computer and use it in GitHub Desktop.
Save hubertlepicki/d71e6c1907cc5e0ec446d8204bfff03f to your computer and use it in GitHub Desktop.
Phoenix stacktraces
09:46:57.136 [error] #PID<0.600.0> running Todos.UI.Endpoint terminated
Server: localhost:4001 (http)
Request: POST /login
** (exit) an exception was raised:
** (DBConnection.ConnectionError) connection not available because of disconnection
(db_connection) lib/db_connection.ex:926: DBConnection.checkout/2
(db_connection) lib/db_connection.ex:742: DBConnection.run/3
(db_connection) lib/db_connection.ex:584: DBConnection.prepare_execute/4
(ecto) lib/ecto/adapters/postgres/connection.ex:73: Ecto.Adapters.Postgres.Connection.prepare_execute/5
(ecto) lib/ecto/adapters/sql.ex:256: Ecto.Adapters.SQL.sql_call/6
(ecto) lib/ecto/adapters/sql.ex:426: Ecto.Adapters.SQL.execute_and_cache/7
(ecto) lib/ecto/repo/queryable.ex:133: Ecto.Repo.Queryable.execute/5
(ecto) lib/ecto/repo/queryable.ex:37: Ecto.Repo.Queryable.all/4
09:52:20.652 [error] #PID<0.602.0> running Todos.UI.Endpoint terminated
Server: localhost:4001 (http)
Request: GET /todos
** (exit) an exception was raised:
** (ArithmeticError) bad argument in arithmetic expression
(ui) lib/ui/controllers/todos_controller.ex:7: Todos.UI.TodosController.index/2
(ui) lib/ui/controllers/todos_controller.ex:1: Todos.UI.TodosController.action/2
(ui) lib/ui/controllers/todos_controller.ex:1: Todos.UI.TodosController.phoenix_controller_pipeline/2
(ui) lib/ui/endpoint.ex:1: Todos.UI.Endpoint.instrument/4
(phoenix) lib/phoenix/router.ex:278: Phoenix.Router.__call__/1
(ui) lib/ui/endpoint.ex:1: Todos.UI.Endpoint.plug_builder_call/2
(ui) lib/plug/debugger.ex:99: Todos.UI.Endpoint."call (overridable 3)"/2
(ui) lib/ui/endpoint.ex:1: Todos.UI.Endpoint.call/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment