Open Nagasaki45 opened 7 years ago
Another similar one. Now with the erlang traceback (after moving to deployments with OTP releases):
2017-04-06 06:21:14.693 [error] Error in process #PID<0.21785.1> on node :"krihelinator@127.0.0.1" with exit value:
{:function_clause,
[{:cowboy_protocol, :parse_uri_path,
["",
{:state, #Port<0.6072>, :ranch_tcp, [:cowboy_router, :cowboy_handler], true,
[listener: Krihelinator.Endpoint.HTTP,
dispatch: [{:_, [],
[{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
{Phoenix.Transports.WebSocket,
{Krihelinator.Endpoint, Krihelinator.UserSocket, :websocket}}},
{:_, [], Plug.Adapters.Cowboy.Handler,
{Krihelinator.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100,
4096, 64, 4096, 100, 5000, 1491459679639},
<<71, 104, 48, 115, 116, 173, 0, 0, 0, 224, 0, 0, 0, 120, 156, 75, 83, 96,
96, 152, 195, 192, 192, 192, 6, 196, 140, 64, 188, 81, 150, 129, 129, 9,
72, 7, 167, 22, 149, 101, 38, 167, 42, ...>>, <<2, 0, 84, 245, 43, 92>>],
[file: 'src/cowboy_protocol.erl', line: 200]}]}
2017-04-06 06:21:14.693 [error] Ranch protocol #PID<0.21785.1> (:cowboy_protocol) of listener Krihelinator.Endpoint.HTTP terminated
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_uri_path/4
(cowboy) src/cowboy_protocol.erl:200: :cowboy_protocol.parse_uri_path("", {:state, #Port<0.6072>, :ranch_tcp, [:cowboy_router, :cowboy_handler], true, [listener: Krihelinator.Endpoint.HTTP, dispatch: [{:_, [], [{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Krihelinator.Endpoint, Krihelinator.UserSocket, :websocket}}}, {:_, [], Plug.Adapters.Cowboy.Handler, {Krihelinator.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1491459679639}, <<71, 104, 48, 115, 116, 173, 0, 0, 0, 224, 0, 0, 0, 120, 156, 75, 83, 96, 96, 152, 195, 192, 192, 192, 6, 196, 140, 64, 188, 81, 150, 129, 129, 9, 72, 7, 167, 22, 149, 101, 38, 167, 42, 4, 36, 38, 103, 43, 24, 50, ...>>, <<2, 0, 84, 245, 43, 92>>)
Copying another failure from old ticket #134 to organize all of the cowboy related issues in the same place and closing the other ticket.
18:20:18.395 [error] Ranch protocol #PID<0.28926.18> (:cowboy_protocol) of listener Krihelinator.Endpoint.HTTP terminated
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in :cow_http_hd.token_ci_list_sep/3
(cowlib) src/cow_http_hd.erl:191: :cow_http_hd.token_ci_list_sep("Te", [], "keep-alive")
(cowlib) src/cow_http_hd.erl:31: :cow_http_hd.parse_connection/1
(cowboy) src/cowboy_req.erl:189: :cowboy_req.new/14
(cowboy) src/cowboy_protocol.erl:410: :cowboy_protocol.request/9
Searching for an answer on stackoverflow.
Maybe related to https://github.com/ninenines/cowboy/issues/448.