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
215 stars 111 forks source link

unexpected end of stream on Connection {api.sandbox.push.apple.com:443 #83

Open mikezang opened 3 years ago

mikezang commented 3 years ago

NotificationResponse{error=null, httpStatusCode=-1, responseBody='null', cause=java.io.IOException: unexpected end of stream on Connection{api.sandbox.push.apple.com:443, proxy=HTTP @ MyProxy.mydomain.co.jp/x.y.z.i:443 hostAddress=/x.y.y.i:443 cipherSuite=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 protocol=http/1.1}}

What can I do? does anyone meet the same issue?

DziubaR commented 3 years ago

I have the same issue. I have added jetty alpn agent (implementation group: 'org.mortbay.jetty.alpn', name: 'jetty-alpn-agent', version: '2.0.10') but it didn’t help me. I use java8 with SpringMVC(not boot) framework

mccraigmccraig commented 2 years ago

i've just started to encounter this issue in a dev build - we haven't seen it in our production builds

the difference is maybe JDK version - the dev build is using a newer JDK (still java 8) from prod

JungWonYong commented 2 years ago

I have same problem almost same situation with @mccraigmccraig. After I did version up linux and Java 8 update minor version, unexpected end of stream error being started.

I am using 2016 version. So I should to version up to 2.0, I think. v2.0.0 - Support for Support for JDK8u252+