Skip to content

Instantly share code, notes, and snippets.

@rohfosho
Created March 31, 2016 01:23
Show Gist options
  • Save rohfosho/a8df0572082fe3ad1fd34e292a273be0 to your computer and use it in GitHub Desktop.
Save rohfosho/a8df0572082fe3ad1fd34e292a273be0 to your computer and use it in GitHub Desktop.
** (exit) an exception was raised:
** (ErlangError) erlang error: :if_clause
(stdlib) calendar.erl:117: :calendar.date_to_gregorian_days/3
(stdlib) calendar.erl:138: :calendar.datetime_to_gregorian_seconds/1
(ecto) lib/ecto/adapters/postgres/datetime.ex:50: Ecto.Adapters.Postgres.DateTime.encode_timestamp/1
(postgrex) lib/postgrex/query.ex:100: DBConnection.Query.Postgrex.Query.do_encode/4
(postgrex) lib/postgrex/query.ex:61: DBConnection.Query.Postgrex.Query.encode/3
(db_connection) lib/db_connection.ex:885: DBConnection.describe_execute/5
(db_connection) lib/db_connection.ex:1009: DBConnection.run_begin/3
(db_connection) lib/db_connection.ex:957: DBConnection.run_meter/3
(db_connection) lib/db_connection.ex:421: DBConnection.query/4
(postgrex) lib/postgrex.ex:111: Postgrex.query/4
(ecto) lib/ecto/adapters/postgres/connection.ex:31: Ecto.Adapters.Postgres.Connection.query/4
(stdlib) timer.erl:197: :timer.tc/3
(ecto) lib/ecto/adapters/sql.ex:262: Ecto.Adapters.SQL.query/7
(ecto) lib/ecto/pool.ex:149: Ecto.Pool.run/4
(ecto) lib/ecto/adapters/sql.ex:247: Ecto.Adapters.SQL.query/6
(ecto) lib/ecto/adapters/sql.ex:225: Ecto.Adapters.SQL.query/5
(ecto) lib/ecto/adapters/sql.ex:487: Ecto.Adapters.SQL.model/6
(ecto) lib/ecto/repo/schema.ex:297: Ecto.Repo.Schema.apply/5
(ecto) lib/ecto/repo/schema.ex:81: anonymous fn/11 in Ecto.Repo.Schema.do_insert/4
(ecto) lib/ecto/repo/schema.ex:477: anonymous fn/3 in Ecto.Repo.Schema.wrap_in_transaction/9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment