-
Notifications
You must be signed in to change notification settings - Fork 863
Description
The question
I have to set TLS as negotiationType and use an unencrypted HTTP/2 connection (h2c) to request the grpc server, but I can't imitate the grpcurl -insecure function in the client code, how can I achieve this function in the java-client code?
grpcurl -insecure -authority k8s2.test.ysb \ -import-path /opt/proto \ $(find /opt/proto -name "*.proto" -exec echo -n "-proto {} " \;) \ -d '{ "model_spec": { "name": "half_plus_two", "signature_name": "serving_default" }, "inputs": { "x": { "dtype": "DT_FLOAT", "tensor_shape": { "dim": [ { "size": 3 }, { "size": 1 } ] }, "float_val": [1.0, 2.0, 5.0] } } }' \ k8s2.test.ysb:443 tensorflow.serving.PredictionService/Predict
grpcurl like this works well.
Which versions do you use?
Spring (boot): 2.3.8.RELEASE
grpc-spring-boot-starter: 2.11.0.RELEASE
java: version + architecture: 64bit JDK8