The TLS handshake failed, but we are not able to know the reason just based 
on the above stacktrace. What is the TLS provider you are using in 
enterprise environment? It might be your enterprise environment where your 
server is running does snot support ALPN and HTTP2. There is more 
information in gRPC's SECURITY.md 
<https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting>.

On Wednesday, April 29, 2020 at 4:09:06 AM UTC-7 [email protected] wrote:

>
> Hi, 
>
> I'm facing the above exception when trying to connect to dialogflow from 
> my Spring Boot Application.
> I'm using Java 8 and google-cloud-dialogflow v1.0.0 java client library.  
> The code i'm using is available here - 
> https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/dialogflow/cloud-client/src/main/java/com/example/dialogflow/DetectIntentTexts.java
>
> The same code works absolutely fine in my personal network but fails in 
> enterprise network. I have tried everything i can find on the internet 
> nothing seems to work..
>
> Please Help me fix this issue
>
> Trace - 
> io.grpc.StatusRuntimeException: UNAVAILABLE: Failed ALPN negotiation: 
> Unable to find compatible protocol
> Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, 
> WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
> at io.grpc.Status.asRuntimeException(Status.java:533) 
> ~[grpc-api-1.27.2.jar:1.27.2]
> at 
> io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:497) 
> ~[grpc-stub-1.27.2.jar:1.27.2]
> at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426) 
> ~[grpc-core-1.27.2.jar:1.27.2]
> at io.grpc.internal.ClientCallImpl.access$500(ClientCallImpl.java:66) 
> ~[grpc-core-1.27.2.jar:1.27.2]
> at 
> io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:689)
>  
> ~[grpc-core-1.27.2.jar:1.27.2]
> at 
> io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$900(ClientCallImpl.java:577)
>  
> ~[grpc-core-1.27.2.jar:1.27.2]
> at 
> io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:751)
>  
> ~[grpc-core-1.27.2.jar:1.27.2]
> at 
> io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:740)
>  
> ~[grpc-core-1.27.2.jar:1.27.2]
> at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) 
> ~[grpc-core-1.27.2.jar:1.27.2]
> at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) 
> ~[grpc-core-1.27.2.jar:1.27.2]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> ~[na:1.8.0_91]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_91]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>  
> ~[na:1.8.0_91]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  
> ~[na:1.8.0_91]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  
> ~[na:1.8.0_91]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  
> ~[na:1.8.0_91]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91]
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/ca6b1a90-8942-4a22-877f-bf0adf0a8320%40googlegroups.com.

Reply via email to