CleverTap / apns-http2

A Java library for sending notifications via APNS using Apple's HTTP/2 API.
https://clevertap.com
BSD 3-Clause "New" or "Revised" License
216 stars 109 forks source link

Java 11 java.io.IOException: unexpected end of stream on okhttp3.Address #75

Open marchenault opened 4 years ago

marchenault commented 4 years ago

Servlet Container | Apache Tomcat/9.0.35 Java 11.0.7 (AdoptOpenJDK) 64bit

I'm experiencing the error: unexpected end of stream on okhttp3.Address@6b43b5d8 with synch and asynch requests.

From my understanding in the past with java 8 you would need Jetty's ALPN JAR but with 9 and above you would not.

I am following the instructions on https://github.com/CleverTap/apns-http2/blob/master/README.md.

I don't see any logged errors anywhere except in the response.

NotificationResponse{error=null, httpStatusCode=-1, responseBody='null', cause=java.io.IOException: unexpected end of stream on okhttp3.Address@6b43b5d8}

Is there anything i can do to get more detail on the connection failure?

Thank you.