Created
September 29, 2014 04:26
-
-
Save j-mcnally/9569576ec1ad03a1f14d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:26:13.992 [error] GenServer #PID<0.235.0> terminating | |
Last message: {:query, "INSERT INTO \"channels\" (\"description\", \"github_id\", \"image\", \"popularity\", \"project_url\", \"title\")\nVALUES ($1, $2, $3, $4, $5, $6)\nRETURNING \"created_at\", \"id\"", ["Ruby on Rails", 8514, "https://avatars.githubusercontent.com/u/4223?v=2", 0.0, "https://github.com/rails/rails", "rails"], [timeout: 5000]} | |
State: %{conn: nil, monitor: nil, params: [port: 5432, encoder: #Function<17.115824485/3 in Ecto.Adapters.Postgres.prepare_start/2>, decoder: #Function<16.115824485/4 in Ecto.Adapters.Postgres.prepare_start/2>, formatter: #Function<15.115824485/1 in Ecto.Adapters.Postgres.prepare_start/2>, username: "postgres", password: "postgres", hostname: "localhost", database: "struct"]} | |
** (exit) exited in: :gen_server.call(#PID<0.410.0>, {:query, "INSERT INTO \"channels\" (\"description\", \"github_id\", \"image\", \"popularity\", \"project_url\", \"title\")\nVALUES ($1, $2, $3, $4, $5, $6)\nRETURNING \"created_at\", \"id\"", ["Ruby on Rails", 8514, "https://avatars.githubusercontent.com/u/4223?v=2", 0.0, "https://github.com/rails/rails", "rails"], [timeout: 5000]}, 5000) | |
** (EXIT) an exception was raised: | |
** (FunctionClauseError) no function clause matching in Decimal.nan?/1 | |
(decimal) lib/decimal.ex:181: Decimal.nan?(0.0) | |
(postgrex) lib/postgrex/types.ex:355: Postgrex.Types.encode_numeric/1 | |
(postgrex) lib/postgrex/types.ex:94: Postgrex.Types.encode_value/4 | |
(elixir) lib/enum.ex:977: Enum."-map/2-lc$^0/1-0-"/2 | |
(elixir) lib/enum.ex:977: Enum."-map/2-lc$^0/1-0-"/2 | |
(postgrex) lib/postgrex/connection.ex:757: Postgrex.Connection.encode_params/1 | |
(postgrex) lib/postgrex/connection.ex:727: Postgrex.Connection.send_params/2 | |
(postgrex) lib/postgrex/connection.ex:491: Postgrex.Connection.new_data/2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have same/similar issue in my Phoenix code. How did you solve it?