-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
I have been trying to use this library with julia 1.7.3:
- https://github.com/grpc/grpc/blob/master/examples/cpp/helloworld/greeter_server.cc as the server
- Adding
option py_generic_services = true;to the proto file https://github.com/grpc/grpc/blob/master/examples/protos/helloworld.proto as recommended in the doc - Generating the julia code from protobuf:
using gRPCClient
gRPCClient.generate("PATH_TO_GRPC/grpc/examples/protos/helloworld.proto")- Calling on the julia side using:
using gRPCClient
# Helloworld related
include("PATH_TO_PROTOCODE/HelloworldClients.jl")
using .HelloworldClients
import .HelloworldClients: HelloRequest, HelloReply, SayHello
Base.show(io::IO, hello_request::HelloRequest) =
print(io, hello_request.name)
Base.show(io::IO, hello_reply::HelloReply) =
print(io, hello_reply.message)
hello_request = HelloRequest(; name ="Something");
client = GreeterBlockingClient("0.0.0.0:50051");
result, status = SayHello(client,hello_request);
println(gRPCCheck(status))
println(result)The script above hangs at the line SayHello(client,hello_request); with no error message.
I have tried with Julia 1.6.6 and it works no hanging.
anj1
Metadata
Metadata
Assignees
Labels
No labels