autodidaddict

autodidaddict

Author of Real World Event Sourcing

Building a gRPC service, server tells all clients "not implemented" for this method

I’m building a gRPC server and it’s using mutual tls. Right now, it’s configured just to listen for heartbeat messages from clients as a litmus test. When a client, either one written in Rust or the grpcurl CLI, hit my application, they get the following error message:

(from Rust)

Error: Status { code: Unimplemented, message: "Operation is not implemented or not supported/enabled in this service", metadata: MetadataMap { headers: {"content-length": "0", "content-type": "application/grpc+proto", "date": "Tue, 25 May 2021 13:42:25 GMT", "server": "Cowboy"} } }

This is the reply, so the content length of the reply is 0, my message to the server was populated.

Here’s the line in the protobuf file that’s relevant:

service HostHandshake {
    rpc heartBeat(ProviderHeartBeat) returns (Empty);
}

And here’s my server definition (which is named by an endpoint):

    @spec heart_beat(HostCore.Capcom.ProviderHeartBeat.t) :: Wasmcloud.Capcom.Empty.t
    def heart_beat(hb) do
        IO.inspect hb

        Wasmcloud.Capcom.Empty.new()
    end

Anybody know why my stuff is showing up as not implemented? What wiring am I missing?

First Post!

dimitarvp

dimitarvp

I am not at all familiar with gRPC but here’s a SO thread: go - Getting Unimplemented desc = unknown service error gRPC - Stack Overflow

But I am not well-informed so just a shot in the dark.

Where Next?

Popular in Questions Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
LegitStack
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it. I’m very interested in Elixir,...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
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
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
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
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New

We're in Beta

About us Mission Statement