I have been working myself through the tutorial about akka-grpc and sadly nothing has worked so far. First I had decided to set up my akka-http server with http only and no https but with UseHttp2.always(). No matter what I tried with grpcurl I could not get anything to work (the command grpcurl -plaintext localhost:9999 list.
Everytime I tried it, I got the error that Illegal request, responding with status '501 Not Implemented': Unsupported HTTP method: PRI.
I then assumed I just have to bite the bullet and move to HTTPS. After many struggles I managed to get the handshake error gone so I could use grpcurl -insecure localhost:9999 list only to be greeted with…
Illegal request, responding with status '501 Not Implemented': Unsupported HTTP method: PRI.
I really dont know what else I could do. My application.conf enables http2 support for akk: akka.http.server.preview.enable-http2 = on
Http.get(actorSystem).bind(...) and then on each incoming connection connection.handleAsync. It seems that this is not equivalent to Http.get(actorSystem).bindAndHandleAsync. I will check with akka http if this is intended.
This is not ‘intended’ per se, but it’s a known limitation that Akka HTTP HTTP/2 support currently only works with bindAndHandleAsync (Server-Side HTTP/2 • Akka HTTP).