Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created July 22, 2015 10:24
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 bcardarella/2f1b55caf62ea43c355f to your computer and use it in GitHub Desktop.
Save bcardarella/2f1b55caf62ea43c355f to your computer and use it in GitHub Desktop.
[debug] Processing by SogApi.EventController.index/2
Parameters: %{"format" => "json", "month" => "4", "year" => "2015"}
Pipelines: [:api]
{"SELECT e0.\"id\", e0.\"title\", e0.\"description\", e0.\"slug\", e0.\"price\", e0.\"total_spots\", e0.\"start_time\", e0.\"end_time\", e0.\"track\", e0.\"status\", e0.\"banner_image\", e0.\"overview\", e0.\"come_prepared\", e0.\"takeaways\", e0.\"teachers\", e0.\"guest
s\", e0.\"inserted_at\", e0.\"updated_at\", e0.\"location_id\", e0.\"category_id\" FROM \"events\" AS e0 WHERE (extract(month from e0.\"start_time\") = $1 AND extract(year from e0.\"start_time\") = $2)",
["4", "2015"]}
[info] Sent 500 in 73ms
[error] #PID<0.617.0> running SogApi.Endpoint terminated
Server: localhost:4000 (http)
Request: GET /api/v1/events?year=2015&month=4
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in Postgrex.Extensions.Binary.encode/4
(postgrex) lib/postgrex/extensions/binary.ex:59: Postgrex.Extensions.Binary.encode(%Postgrex.TypeInfo{array_elem: 0, base_type: 0, comp_elems: [], input: "float8in", oid: 701, output: "float8out", receive: "float8recv", send: "float8send", type: "float8"}, "4", 2
035828, {9, 4, 4})
(postgrex) lib/postgrex/protocol.ex:299: anonymous fn/2 in Postgrex.Protocol.encode_params/1
(elixir) lib/enum.ex:977: anonymous fn/3 in Enum.map/2
(elixir) lib/enum.ex:1261: Enum."-reduce/3-lists^foldl/2-0-"/3
(elixir) lib/enum.ex:977: Enum.map/2
(postgrex) lib/postgrex/protocol.ex:294: Postgrex.Protocol.encode_params/1
(postgrex) lib/postgrex/protocol.ex:264: Postgrex.Protocol.send_params/2
(postgrex) lib/postgrex/protocol.ex:136: Postgrex.Protocol.message/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment