sribe

sribe

[error] Ranch protocol :error (:cowboy_protocol) of listener UrlFetcher.Endpoint.HTTP terminated
** (exit) :undef
15:07:19.288 [error] Ranch listener ‘Elixir.UrlFetcher.Endpoint.HTTP’ connection process start failure; cowboy_protocol:start_link/4 crashed with reason: error:undef

Any idea where to look? I have renamed some files & modules, which is of course an immediate suspect for this error. But I’ve double-checked everything; deleted the _build folder; and I don’t see anything wrong in the project.

(I have added gRPC modules; but I don’t see how they could affect this.)

Showing Posts 1 to 10

OvermindDL1

OvermindDL1

Huh, that is entirely new to me. Any chance on posting this project on github or preferably a simplified version that reproduces this error?

sribe

sribe OP

Going through my changes step-by-step: it’s caused by the Cowboy branch from Tony Han as part of his gRPC support.

So I’m going to dig into that repo and look at his commits now.

sribe

sribe OP

  • gRPC requires a forked branch of a pre-release of Cowboy 2
  • Cowboy 2 has some API changes which are not compatible with Phoenix
  • There are forks of phoenix & plug with preliminary support for Cowboy 2

The plug/phoenix forks do not work with the gRPC stuff straight out of the box, and I don’t think I can take the time right now to fix that.

I’m trying to implement a super-simple API (1 call), so I think my best bet is probably to start with gRPC, then set up routing of my 1 endpoint from Cowboy to a handler, without Phoenix & Plug.

OvermindDL1

OvermindDL1

Oh I hope that adds HTTP2 support… >.<

We need a way in phoenix to specify to the plug to send other data/files to the client along with the page (page first though) ahead-of-time…

sribe

sribe OP

Yes, Cowboy 2 adds HTTP2 support, and that is in fact the source of the API incompatibility–new HTTP features.

tony612

tony612

Hi, just saw this. I just use the commit in this PR to support Trailers in HTTP/2 http trailers support by IgorKarymov · Pull Request #1020 · ninenines/cowboy · GitHub . But I don’t think it’s related to your problem. And maybe it’s not a good idea to use Cowboy2 with Phoenix before the stable version is released.

seeekr

seeekr

What’s the status of cowboy 2.x with phoenix? I’m trying to use your grpc library in a phoenix 1.3 project, getting "ranch protocol :error"s.

OvermindDL1

OvermindDL1

Current Plug/Phoenix master has Cowboy2 support, they are just finishing refining it but you can use it now if you want to play with it.

Darim

Darim

How exactly should they all be specified in mix.exs?

OvermindDL1

OvermindDL1

Use the master versions, they have not had a release yet.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New

Other Trending Topics Top

hauleth
Name: Łukasz Niemier Location: Poznań, Poland Remote / relocation / travel: Remote, with occasional travel. Work experience: I am soft...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews