playframework / playframework/play-grpc
Target uri should not have null authority
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 41
- Forks
- 27
- Avg merge
- 21h 16m
- Merged PRs (30d)
- 12
Description
Hi there,
Been trying to create a simple client/server from one protobuf file. The server works as expected, but when I am trying to configure the client
pekko.grpc.client {
"prime.PrimeNumberService" {
host = "127.0.0.1"
port = 9000
use-tls = false
}
}
I get the following error:
[IllegalArgumentException: requirement failed: target uri should not have null authority, got [http://///127.0.0.1:9000]]
And some more details:
@PekkoGrpcGenerated
28object PrimeNumberServiceClient {
29 def apply(settings: GrpcClientSettings)(implicit sys: ClassicActorSystemProvider): PrimeNumberServiceClient =
30 new DefaultPrimeNumberServiceClient(GrpcChannel(settings), isChannelOwned = true)
31
32
33 def apply(channel: GrpcChannel)(implicit sys: ClassicActorSystemProvider): PrimeNumberServiceClient =
34 new DefaultPrimeNumberServiceClient(channel, isChannelOwned = false)
Do you know if I made a typo in the configuration or should I use a different approach?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the client setup from the pekko.grpc.client configuration block with host 127.0.0.1, port 9000, and use-tls = false. Follow the generated PrimeNumberServiceClient entry point and the resulting target URI error. Done means the simple client can connect without the null-authority IllegalArgumentException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, scala
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100