Error meassage in terminal - Elixir.Phoenix.Endpoint.CowboyHandler

637 views
Skip to first unread message

son...@gmail.com

unread,
Jun 5, 2015, 3:13:16 AM6/5/15
to phoeni...@googlegroups.com
I was trying to create a new controller and see how the file system linked together but when i visited the localhost:4000 there terminal dies with this error message - any ideas what might be causing it  - more info might be required 

[error] Error in process <0.277.0> with exit value: {function_clause,[{cowboy_protocol,parse_method,[<<0 bytes>>,{state,#Port<0.6183>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.277.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.6183>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433487982566}, <<22, 3, 1, 0, 154, 1, 0, 0, 150, 3, 2, 30, 4, 155, 36, 238, 52, 165, 221, 194, 244, 12, 180, 69, 185, 204, 190, 223, 135, 95, 122, 243, 173, 151, 42, 104, 120, 6, 214, 208, 103, 102, 22, 0, 0, 22, 192, 10, 192, 20, ...>>)
[error] Error in process <0.278.0> with exit value: {function_clause,[{cowboy_protocol,parse_method,[<<0 bytes>>,{state,#Port<0.6187>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.278.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.6187>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433487982567}, <<22, 3, 1, 0, 162, 1, 0, 0, 158, 3, 2, 27, 142, 80, 220, 228, 158, 184, 17, 85, 137, 195, 152, 48, 132, 73, 221, 116, 250, 62, 179, 96, 146, 206, 89, 164, 82, 24, 190, 5, 58, 132, 198, 0, 0, 30, 192, 10, 192, 20, ...>>)
[error] Error in process <0.279.0> with exit value: {function_clause,[{cowboy_protocol,parse_method,[<<0 bytes>>,{state,#Port<0.6192>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.279.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.6192>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433487982568}, <<22, 3, 1, 0, 162, 1, 0, 0, 158, 3, 1, 141, 4, 163, 129, 83, 113, 210, 39, 102, 128, 169, 237, 147, 85, 115, 2, 136, 108, 183, 243, 6, 187, 24, 63, 106, 163, 53, 7, 178, 28, 166, 142, 0, 0, 30, 192, 10, 192, 20, ...>>)



James Fish

unread,
Jun 5, 2015, 5:18:36 AM6/5/15
to phoeni...@googlegroups.com
This looks like a bug in cowboy. Since it appears to be an hello world experiment could you make the code available or send it to me off list?

--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/2d7675fb-f41b-41c7-8a0e-0f7eae5b101f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Somers

unread,
Jun 5, 2015, 5:20:28 AM6/5/15
to phoeni...@googlegroups.com
I tried adding a user controller to the hellopheonix so its not completely virgin 
let me retrace my steps here 

--
You received this message because you are subscribed to a topic in the Google Groups "phoenix-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phoenix-talk/AfMhWEr7T08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phoenix-talk...@googlegroups.com.

To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/phoenix-talk.

For more options, visit https://groups.google.com/d/optout.



--
M

son...@gmail.com

unread,
Jun 5, 2015, 6:27:17 AM6/5/15
to phoeni...@googlegroups.com
I think these were the steps I was using with postgres running in the background

sudo mkdir hello_phoenix
sudo mix phoenix.new hello_phoenix
cd hello_phoenix
sudo mix deps.get
sudo mix ecto.create
sudo mix phoenix.gen.html User users name:string email:string bio:string number_of_pets:integer

'added resources "/users", UserController to web/router.ex:

sudo mix ecto.migrate
sudo mix phoenix.server

server doesnt start at this point missing brunch which is strange as I would have thought it would get install on initalisation so 

npm install brunch
sudo npm install 

need to kill .beam process in the background
sudo mix phoenix.server

server starts

sudo mix phoenix.server
[info] Running HelloPhoenix.Endpoint with Cowboy on port 4000 (http)
05 Jun 11:22:39 - info: compiled 3 files into 2 files in 1859ms

using browser visit

[error] Error in process <0.278.0> with exit value: {function_clause,[{cowboy_protocol,skip_uri_fragment,[<<0 bytes>>,{state,#Port<0.6184>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.278.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.skip_uri_fragment/5
        (cowboy) src/cowboy_protocol.erl:210: :cowboy_protocol.skip_uri_fragment("", {:state, #Port<0.6184>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433499787012}, <<22, 3, 1, 0, 154, 1, 0, 0, 150, 3, 2, 235, 105, 71, 43, 26, 52, 153, 235, 52, 137, 106, 107, 85, 227, 11, 203, 207, 74, 174, 73, 148, 41, 225, 232, 72, 229, 35, 96, 0>>, <<127, 36, 0, 0, 22, 192, 10, 192, 20, 0, 57, 192, 9, 192, 19, 0, 51, 0, 53, 0, 47, 0, 10, 0, 255, 86, 0, 1, 0, 0, 87, 0, 0, 0, 14, 0, 12, 0, 0, 9, 108, 111, 99, 97, 108, 104, 111, 115, 116, 0, ...>>, "")
[error] Error in process <0.279.0> with exit value: {function_clause,[{cowboy_protocol,parse_method,[<<0 bytes>>,{state,#Port<0.6189>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.279.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.6189>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433499787013}, <<22, 3, 1, 0, 162, 1, 0, 0, 158, 3, 2, 92, 228, 20, 92, 116, 169, 8, 138, 194, 163, 158, 90, 151, 68, 89, 176, 225, 65, 216, 234, 61, 215, 66, 210, 139, 78, 0, 49, 203, 76, 156, 197, 0, 0, 30, 192, 10, 192, 20, ...>>)
[error] Error in process <0.280.0> with exit value: {function_clause,[{cowboy_protocol,skip_uri_fragment,[<<0 bytes>>,{state,#Port<0.6193>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.280.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.skip_uri_fragment/5
        (cowboy) src/cowboy_protocol.erl:210: :cowboy_protocol.skip_uri_fragment("", {:state, #Port<0.6193>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433499787014}, <<22, 3, 1, 0, 162, 1, 0, 0, 158, 3, 1, 179, 114>>, <<48, 147, 95, 114, 205, 232, 115, 223, 249, 33, 54, 215, 180, 122, 187, 163, 239, 110, 45, 23, 55, 60, 248, 68, 76, 71, 7, 172, 155, 0, 0, 30, 192, 10, 192, 20, 0, 57, 192, 9, 192, 19, 0, 51, 192, 7, 192, 17, 0, 53, ...>>, "")
[error] Ranch protocol #PID<0.282.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.6402>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433499787184}, <<22, 3, 1, 0, 154, 1, 0, 0, 150, 3, 2, 171, 18, 221, 246, 136, 197, 19, 97, 115, 62, 23, 252, 44, 213, 188, 214, 10, 88, 108, 42, 106, 63, 227, 94, 98, 68, 232, 24, 51, 64, 47, 10, 0, 0, 22, 192, 10, 192, 20, ...>>)
[error] Error in process <0.282.0> with exit value: {function_clause,[{cowboy_protocol,parse_method,[<<0 bytes>>,{state,#Port<0.6402>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.283.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3
        (cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.6403>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433499787186}, <<22, 3, 1, 0, 162, 1, 0, 0, 158, 3, 2, 214, 12, 239, 70, 231, 196, 177, 154, 145, 151, 34, 135, 60, 74, 16, 175, 130, 202, 87, 148, 159, 190, 204, 127, 167, 183, 204, 27, 103, 237, 57, 200, 0, 0, 30, 192, 10, 192, 20, ...>>)
[error] Error in process <0.283.0> with exit value: {function_clause,[{cowboy_protocol,parse_method,[<<0 bytes>>,{state,#Port<0.6403>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


[error] Ranch protocol #PID<0.284.0> (:cowboy_protocol) of listener HelloPhoenix.Endpoint.HTTP terminated
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :cowboy_protocol.skip_uri_fragment/5
        (cowboy) src/cowboy_protocol.erl:210: :cowboy_protocol.skip_uri_fragment("", {:state, #Port<0.6404>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: HelloPhoenix.Endpoint.HTTP, dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.CowboyHandler, {HelloPhoenix.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1433499787190}, <<22, 3, 1, 0, 162, 1, 0, 0, 158, 3, 1, 207>>, <<124, 161, 190, 85, 241, 132, 54, 176, 144, 229, 140, 135, 54, 89, 55, 237, 103, 147, 181, 90, 174, 124, 14, 108, 128, 46, 252, 119, 61, 57, 0, 0, 30, 192, 10, 192, 20, 0, 57, 192, 9, 192, 19, 0, 51, 192, 7, 192, 17, 0, ...>>, "")
[error] Error in process <0.284.0> with exit value: {function_clause,[{cowboy_protocol,skip_uri_fragment,[<<0 bytes>>,{state,#Port<0.6404>,ranch_tcp,[cowboy_router,cowboy_handler],false,[{listener,'Elixir.HelloPhoenix.Endpoint.HTTP'},{dispatch,[{'_',[],[{'_',[],'Elixir.Phoenix.Endpoint.CowboyHandler'...


Chris McCord

unread,
Jun 5, 2015, 7:25:42 AM6/5/15
to phoeni...@googlegroups.com
Can you include your Elixir, Erlang, and Phoenix versions? Also, can you try running the commands without sudo?


--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/phoenix-talk.

James Fish

unread,
Jun 5, 2015, 7:41:08 AM6/5/15
to phoeni...@googlegroups.com
Your OS and browser including versions would be useful too, especially if you can not replicate with curl.

James Fish

unread,
Jun 5, 2015, 7:56:05 AM6/5/15
to phoeni...@googlegroups.com

Martin Somers

unread,
Jun 5, 2015, 8:44:51 AM6/5/15
to phoeni...@googlegroups.com
Ive never been able to run commands without sudo mkdir rm ex...  -- only non sudo commands I can run are with npm, this is because Ive changed the permission on its folder to do so 

phoenix 13.1 

$ iex --version
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.0.4
[@ ~/CODE/ELIXIR/hello_phoenix]
$ erl -v
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

You received this message because you are subscribed to a topic in the Google Groups "phoenix-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phoenix-talk/AfMhWEr7T08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phoenix-talk...@googlegroups.com.

To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/phoenix-talk.

For more options, visit https://groups.google.com/d/optout.



--
M

Martin Somers

unread,
Jun 5, 2015, 8:50:22 AM6/5/15
to phoeni...@googlegroups.com
Looks like https causes problems while http seems fine at the moment 
--
M

h.bi...@gmail.com

unread,
Jul 14, 2016, 1:58:59 PM7/14/16
to phoenix-talk, son...@gmail.com
Any process of this problem?

I tried to run stress test for my project, but I ran to this problem:

=====
===== LOGGING STARTED Thu Jul 14 17:39:07 UTC 2016
=====
     
[listener: Fluensay.Endpoint.HTTP,
      dispatch
: [{:_, [],
       
[{["guest_socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
         
{Phoenix.Transports.WebSocket,
           
{Fluensay.Endpoint, Fluensay.GuestSocket, :websocket}}},
         
{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
         
{Phoenix.Transports.WebSocket,
           
{Fluensay.Endpoint, Fluensay.UserSocket, :websocket}}},
         
{:_, [], Plug.Adapters.Cowboy.Handler, {Fluensay.Endpoint, []}}]}]],

     
:undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000,

     
1468517952696},
   
<<130, 190, 51, 176, 38, 85, 72, 146, 82, 58, 67, 217, 69, 119, 9, 146, 86,
     
61, 92, 213, 72, 60, 75, 146, 10, 119, 86, 198, 67, 59, 71, 146, 28, 119,
     
91, 213, 71, 39, 71, 210, 67, 52, 71, 146, ...>>],
   
[file: 'src/cowboy_protocol.erl', line: 168]}]}


17:39:07.706 [error] Ranch protocol #PID<0.25333.4> (:cowboy_protocol) of listener Fluensay.Endpoint.HTTP terminated

** (exit) an exception was raised:
   
** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3

       
(cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.58059>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: Fluensay.Endpoint.HTTP, dispatch: [{:_, [], [{["guest_socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Fluensay.Endpoint, Fluensay.GuestSocket, :websocket}}}, {["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Fluensay.Endpoint, Fluensay.UserSocket, :websocket}}}, {:_, [], Plug.Adapters.Cowboy.Handler, {Fluensay.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1468517952696}, <<130, 190, 51, 176, 38, 85, 72, 146, 82, 58, 67, 217, 69, 119, 9, 146, 86, 61, 92, 213, 72, 60, 75, 146, 10, 119, 86, 198, 67, 59, 71, 146, 28, 119, 91, 213, 71, 39, 71, 210, 67, 52, 71, 146, 10, 119, 67, 209, 95, 57, ...>>)
17:39:07.973 [error] Error in process #PID<0.25340.4> on node :"flue...@127.0.0.1" with exit value:
{:function_clause,
 
[{:cowboy_protocol, :parse_method,
   
["",
   
{:state, #Port<0.58065>, :ranch_tcp, [:cowboy_router, :cowboy_handler],
     
false,
     
[listener: Fluensay.Endpoint.HTTP,
      dispatch
: [{:_, [],
       
[{["guest_socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
         
{Phoenix.Transports.WebSocket,
           
{Fluensay.Endpoint, Fluensay.GuestSocket, :websocket}}},
         
{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
         
{Phoenix.Transports.WebSocket,
           
{Fluensay.Endpoint, Fluensay.UserSocket, :websocket}}},
         
{:_, [], Plug.Adapters.Cowboy.Handler, {Fluensay.Endpoint, []}}]}]],

     
:undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000,

     
1468517952972},
   
<<130, 190, 40, 164, 209, 171, 83, 134, 165, 196, 88, 205, 178, 137, 18,
     
134, 161, 195, 71, 193, 191, 194, 80, 134, 253, 137, 77, 210, 180, 197,
     
92, 134, 235, 137, 64, 193, 176, 217, 92, 198, 180, 202, 92, 134, ...>>],
   
[file: 'src/cowboy_protocol.erl', line: 168]}]}


17:39:07.974 [error] Ranch protocol #PID<0.25340.4> (:cowboy_protocol) of listener Fluensay.Endpoint.HTTP terminated

** (exit) an exception was raised:
   
** (FunctionClauseError) no function clause matching in :cowboy_protocol.parse_method/3

       
(cowboy) src/cowboy_protocol.erl:168: :cowboy_protocol.parse_method("", {:state, #Port<0.58065>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: Fluensay.Endpoint.HTTP, dispatch: [{:_, [], [{["guest_socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Fluensay.Endpoint, Fluensay.GuestSocket, :websocket}}}, {["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Fluensay.Endpoint, Fluensay.UserSocket, :websocket}}}, {:_, [], Plug.Adapters.Cowboy.Handler, {Fluensay.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1468517952972}, <<130, 190, 40, 164, 209, 171, 83, 134, 165, 196, 88, 205, 178, 137, 18, 134, 161, 195, 71, 193, 191, 194, 80, 134, 253, 137, 77, 210, 180, 197, 92, 134, 235, 137, 64, 193, 176, 217, 92, 198, 180, 202, 92, 134, 253, 137, 88, 197, 168, 199, ...>>)
17:39:08.321 [error] Ranch protocol #PID<0.25350.4> (:cowboy_protocol) of listener Fluensay.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.58075>, :ranch_tcp, [:cowboy_router, :cowboy_handler], false, [listener: Fluensay.Endpoint.HTTP, dispatch: [{:_, [], [{["guest_socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Fluensay.Endpoint, Fluensay.GuestSocket, :websocket}}}, {["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket, {Fluensay.Endpoint, Fluensay.UserSocket, :websocket}}}, {:_, [], Plug.Adapters.Cowboy.Handler, {Fluensay.Endpoint, []}}]}]], :undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000, 1468517953321}, <<130, 190, 111, 145, 134, 72, 20, 179, 242, 39, 31, 248, 229, 106, 85, 179, 246>>, <<0, 244, 232, 33, 23, 179, 170, 106, 10, 231, 227, 38, 27, 179, 188, 106, 7, 244, 231, 58, 27, 243, 227, 41, 27, 179, 170, 106, 31, 240, 255, 36, 0, 240, 226, 106, 85, 234, 251, 100, 77, 227, 227, 46, 77, 171, 164, 123, 77, 236>>)
17:39:08.322 [error] Error in process #PID<0.25350.4> on node :"flue...@127.0.0.1" with exit value:
{:function_clause,
 
[{:cowboy_protocol, :parse_uri_path,
   
["",
   
{:state, #Port<0.58075>, :ranch_tcp, [:cowboy_router, :cowboy_handler],
     
false,
     
[listener: Fluensay.Endpoint.HTTP,
      dispatch
: [{:_, [],
       
[{["guest_socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
         
{Phoenix.Transports.WebSocket,
           
{Fluensay.Endpoint, Fluensay.GuestSocket, :websocket}}},
         
{["socket", "websocket"], [], Phoenix.Endpoint.CowboyWebSocket,
         
{Phoenix.Transports.WebSocket,
           
{Fluensay.Endpoint, Fluensay.UserSocket, :websocket}}},
         
{:_, [], Plug.Adapters.Cowboy.Handler, {Fluensay.Endpoint, []}}]}]],

     
:undefined, :undefined, 5, 1, 100, 4096, 64, 4096, 100, 5000,

     
1468517953321},
   
<<130, 190, 111, 145, 134, 72, 20, 179, 242, 39, 31, 248, 229, 106, 85, 179,
     
246>>,
   
<<0, 244, 232, 33, 23, 179, 170, 106, 10, 231, 227, 38, 27, 179, 188, 106,
     
7, 244, 231, 58, 27, 243, 227, 41, 27, 179, 170, 106, 31, 240, 255, 36, 0,
     
240, 226, 106, 85, 234, 251, 100, 77, 227, 227, ...>>],
   
[file: 'src/cowboy_protocol.erl', line: 200]}]}

hsn.z...@gmail.com

unread,
Dec 13, 2016, 4:24:49 AM12/13/16
to phoenix-talk, son...@gmail.com, h.bi...@gmail.com
Sampe problem here! What is the state of this thread?
Reply all
Reply to author
Forward
0 new messages