Created
July 10, 2015 19:54
-
-
Save justgage/97f631ab236593af0661 to your computer and use it in GitHub Desktop.
This file contains 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
[debug] Processing by Vanpool.PageController.index/2 | |
Parameters: %{"format" => "html"} | |
Pipelines: [:browser] | |
[debug] SELECT v0."id", v0."number", v0."capacity", v0."come_time", v0."go_time", v0."description", v0."inserted_at", v0."updated_at" FROM "vans" AS v0 [] OK query=0.6ms | |
[debug] SELECT r0."id", r0."dir", r0."userid", r0."vanid", r0."date", r0."keys", r0."inserted_at", r0."updated_at" FROM "riding" AS r0 WHERE (r0."userid" = $1) ["U051NJ6S6"] OK query=0.4ms | |
[info] Sent 500 in 23ms | |
[error] #PID<0.1837.0> running Vanpool.Endpoint terminated | |
Server: vanpool.dev:4000 (http) | |
Request: GET / | |
** (exit) an exception was raised: | |
** (Ecto.MultipleResultsError) expected at most one result but got 2 in query: | |
from r in Vanpool.Riding, | |
where: r.userid == ^"U051NJ6S6" | |
(ecto) lib/ecto/repo/queryable.ex:55: Ecto.Repo.Queryable.one/4 | |
(vanpool) web/templates/page/index.html.eex:2: Vanpool.PageView."index.html"/1 | |
(phoenix) lib/phoenix/view.ex:197: Phoenix.View.render_within/3 | |
(phoenix) lib/phoenix/view.ex:432: Phoenix.View.render_to_iodata/3 | |
(phoenix) lib/phoenix/controller.ex:581: Phoenix.Controller.do_render/4 | |
(vanpool) web/controllers/page_controller.ex:1: Vanpool.PageController.phoenix_controller_pipeline/2 | |
(vanpool) lib/phoenix/router.ex:281: Vanpool.Router.dispatch/2 | |
(vanpool) web/router.ex:1: Vanpool.Router.do_call/2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment