fireside68

fireside68

Ranch Listener Error: Connection Process Started with :cowboy_clear:start_link/4

I’m receiving this error after sending email and redirecting to my home page:

[error] Ranch listener UnaffiliatedStudiosWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/4 at #PID<0.591.0> exit with reason: {:function_clause, [{:cowboy_http, :commands, [{:state, #PID<0.413.0>, UnaffiliatedStudiosWeb.Endpoint.HTTP, #Port<0.34>, :ranch_tcp, :undefined, %{env: %{dispatch: [{:_, [], [{:_, [], Phoenix.Endpoint.Cowboy2Handler, {UnaffiliatedStudiosWeb.Endpoint, []}}]}]}, stream_handlers: [:cowboy_telemetry_h, :cowboy_stream_h]}, "", %{}, {{127, 0, 0, 1}, 46282}, {{127, 0, 0, 1}, 4000}, :undefined, #Reference<0.1563623401.610533377.228710>, true, 2, {:ps_request_line, 0}, :infinity, 1, :done, 1000, [{:stream, 1, {:cowboy_telemetry_h, {:state, {:cowboy_stream_h, {:state, :undefined, UnaffiliatedStudiosWeb.Endpoint.HTTP, #PID<0.592.0>, :undefined, :undefined, :undefined, :undefined, 0, :fin, "", 212, ...}}, #Function<0.122385210/1 in :cowboy_telemetry_h."-fun.metrics_callback/1-">, :undefined, %{body_length: 212, cert: :undefined, has_body: true, headers: %{"accept" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding" => "gzip, deflate, br", "accept-language" => "en-US,en;q=0.9", "cache-control" => "max-age=0", "connection" => "keep-alive", "content-length" => "212", "content-type" => "application/x-www-form-urlencoded", ...}, host: "localhost", method: "POST", path: "/contact", peer: {{127, 0, ...}, 46282}, pid: #PID<0.591.0>, port: 4000, qs: "", ...}, "302 Found", %{"cache-control" => "max-age=0, private, must-revalidate", "content-length" => "145", "content-type" => "text/html; charset=utf-8", "cross-origin-window-policy" => "deny", "date" => "Thu, 29 Jul 2021 17:43:43 GMT", "location" => "/", "server" => "Cowboy", "set-cookie" => ["_unaffiliated_studios_key=[REDACTED]; path=/; HttpOnly"], "x-content-type-options" => "nosniff", ...}, UnaffiliatedStudiosWeb.Endpoint.HTTP, -576460726306002000, :undefined, -576460726303071400, -576460726303071400, -576460726053841700, -576460726053841700, %{#PID<0.592.0> => %{...}}, [], ...}}, "POST", :"HTTP/1.1", :undefined, :undefined, 0, []}], [{:child, #PID<0.592.0>, 1, 5000, :undefined}]}, 1, [{:response, "302 Found", %{"cache-control" => "max-age=0, private, must-revalidate", "content-length" => "145", "content-type" => "text/html; charset=utf-8", "cross-origin-window-policy" => "deny", "date" => "Thu, 29 Jul 2021 17:43:43 GMT", "location" => "/", "server" => "Cowboy", "set-cookie" => ["_unaffiliated_studios_key=[REDACTED]; path=/; HttpOnly"], "x-content-type-options" => "nosniff", "x-download-options" => "noopen", "x-frame-options" => "SAMEORIGIN", "x-permitted-cross-domain-policies" => "none", "x-request-id" => "FpZT9Dfup7CWAXMAAAEj", "x-xss-protection" => "1; mode=block"}, ["<html><body>You are being <a href=\"/\">redirected</a>.", "<iframe hidden height=\"0\" width=\"0\" src=\"/phoenix/live_reload/frame\"></iframe>", "</body>", "</html>"]}]], [file: '/home/cedric/unaffiliated_studios/deps/cowboy/src/cowboy_http.erl', line: 957]}, {:cowboy_http, :loop, 1, [file: '/home/cedric/unaffiliated_studios/deps/cowboy/src/cowboy_http.erl', line: 257]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}]}

While I’ve seen some similar, I haven’t seen any of them failing with :cowboy. Anyone else ever run into this sort of thing? Where even would I begin to look?

Marked As Solved

fireside68

fireside68

Sorted this one, also. Turns out, there was a second call to the redirect.

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&amp;query=perfume&amp;page=2, I would like to get: ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a &gt; b) do {:ok, "a"} end if (a &lt; b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" =&gt; #BSON.ObjectId&lt;58eb1a7a9ad169198c3dXXXX&gt;, "email" =&gt; ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement