New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example doesn't start an HTTP server #6
Comments
Oops, looks like I was being dense. So, removing that 00:24:50.488 [error] Error in process <0.218.0> with exit value: {#
{'__exception__'=>true,'__struct__'=>'Elixir.Socket.Error',message=><<16 bytes>>},
[{'Elixir.Socket.Stream','recv!',1,[{file,"lib/socket/stream.ex"},{line,63}]},{'Elixir.Cauldron.HTTP',headers,2,
[{file,"lib/cauldron/http.ex"},{line,74}]},{'Elixir.Cauldron.HTTP'... |
Me too, getting the same error (and is also affecting Urna) |
I seem to be having the same issue. 11:55:46.279 [error] Error in process <0.241.0> with exit value: {#
{'__exception__'=>true,'__struct__'=>'Elixir.Socket.Error',message=><<16 bytes>>},
[{'Elixir.Socket.Stream','recv!',1,[{file,"lib/socket/stream.ex"},{line,63}]},{'Elixir.Cauldron.HTTP',headers,2,
[{file,"lib/cauldron/http.ex"},{line,74}]},{'Elixir.Cauldron.HTTP'... After messing around a bit further I noticed I was on a slightly older Elixir version (1.0.4 instead of 1.0.5). After updating the error has changed into: 12:22:38.754 [error] Process #PID<0.234.0> raised an exception
** (Socket.Error) message too long
(socket) lib/socket/stream.ex:63: Socket.Stream.recv!/1
(cauldron) lib/cauldron/http.ex:74: Cauldron.HTTP.headers/2
(cauldron) lib/cauldron/http.ex:70: Cauldron.HTTP.headers/1
(cauldron) lib/cauldron/http.ex:34: Cauldron.HTTP.run/3 I tried doing a request in Safari, and to my surprise it worked. For some reason it doesn't work when I try to visit from Chrome, but it does work from Safari. Sadly I can't use it this way, because other people who do requests to this server might have the same issue... |
I did some more debugging and found out what the problem was for me. It was caused by cookies. My localhost already had cookies on it from other projects, so I tried removing those and it served it correctly. I tried making some more cookies and after a while it crashes when there's too many/too much content in them. Limit seems to be around 1500-1600? At least I know where the problem is now and I know it's not all that bad, but I do wonder if it would be possible to fix this (would it be an issue for the socket dependency?). |
Forgive me if I'm just being dense, fairly new to Elixir.
Given the following module:
Running
mix run
produces the following in the console:but doesn't actually start a server. What am I doing wrong?
The text was updated successfully, but these errors were encountered: