Skip to content

Instantly share code, notes, and snippets.

@jordi-chacon
Last active August 29, 2015 14:21
Show Gist options
  • Save jordi-chacon/dcccf904f2481d8faef9 to your computer and use it in GitHub Desktop.
Save jordi-chacon/dcccf904f2481d8faef9 to your computer and use it in GitHub Desktop.
No Route Error
(facebook_service) web/router.ex:1: FacebookService.Router.match/4
(facebook_service) lib/phoenix/router.ex:2: FacebookService.Router.call/2
(facebook_service) lib/facebook_service/endpoint.ex:1: FacebookService.Endpoint.phoenix_endpoint_pipeline/1
(facebook_service) lib/phoenix/endpoint/render_errors.ex:34: FacebookService.Endpoint.call/2
(phoenix) lib/phoenix/endpoint/cowboy_handler.ex:52: Phoenix.Endpoint.CowboyHandler.upgrade/4
(cowboy) src/cowboy_protocol.erl:435: :cowboy_protocol.execute/4
%Phoenix.Router.NoRouteError{
conn: %Plug.Conn{
adapter: {Plug.Adapters.Cowboy.Conn, :...},
assigns: %{correlation_id: "1234",
correlation_id_presence_failed?: false,
request_reception_timestamp: {1432, 409640, 645480}},
before_send: [#Function<2.46670050/1 in ShimHTTPex.Plugs.HTTPLogger.call/2>],
body_params: %{},
cookies: %Plug.Conn.Unfetched{aspect: :cookies},
halted: false,
host: "localhost",
method: "GET",
owner: #PID<0.308.0>,
params: %{"format" => "json"},
path_info: ["oops"],
peer: {{127, 0, 0, 1}, 44397},
port: 4001,
private: %{phoenix_endpoint: FacebookService.Endpoint,
phoenix_pipelines: [],
phoenix_router: FacebookService.Router},
query_params: %{},
query_string: "",
remote_ip: {127, 0, 0, 1},
req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [{"accept", "application/json"},
{"shim-correlation-id", "1234"},
{"user-agent", "hackney/1.1.0"},
{"host", "localhost:4001"}],
resp_body: nil,
resp_cookies: %{},
resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}],
scheme: :http,
script_name: [],
secret_key_base: "mcV+tU17meac6XZ+cvGLaV5+By4XXr24wR87fTTUVLy/G6w+E4umFDLYe72cBA5J",
state: :unset,
status: nil},
message: "no route found for GET /oops (FacebookService.Router)",
plug_status: 404,
router: FacebookService.Router}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment