Comments (5)
你好,发生
pro-1 Unexpected command or size. commend: 0 , size: -1
错误,是由于你的p12文件跟你的应用签名可能不一致导致,比方说用dev的来推prod的。该版本无发送不了的问题。
from dbay-apns-for-java.
我也考虑了这个可能,但是我用另一个库pushy,用的也是相同的p12文件,却可以推送成功,所以非常疑惑。断点了startErrorWorker里的size = socketIs.read(res); size返回-1,无法获取失败的原因。
我会再进行尝试,如您想到其它可能,烦请告知。
from dbay-apns-for-java.
抱歉,是我的疏忽。COPY的demo中的代码,潜意识以为demo的应该会是dev模式,没想到默认是production:config.setDevEnv(false),改为dev模式后发送成功。谢谢。
from dbay-apns-for-java.
@RamosLi 最近在项目中遇到一个问题, 我有一个程序负责两个应用的推送, 环境都是正式环境但是 莫名其妙的 会收到大量 Unexpected command or size. commend: 0 , size: -1 这个错误! 很苦恼!!
from dbay-apns-for-java.
@RamosLi 最近在项目中遇到一个问题, 我有一个程序负责两个应用的推送, 环境都是正式环境但是 莫名其妙的 会收到大量 Unexpected command or size. commend: 0 , size: -1 这个错误! 很苦恼!!
解决了吗?
from dbay-apns-for-java.
Related Issues (20)
- 你好,百万级的话大概需要多久时间
- 重试机制如果再次失败,会不会进入死循环 ? HOT 7
- 跪求作者答疑 HOT 4
- RamosLi请问我一次性推送上百万token,几秒钟不到都推送完了,正常吗?
- IOS推送字节限制提升到2048字节了吗 HOT 2
- 关于startErrorWorker中closeSocket(curSocket);问题
- 昨天突然发现PUSH出现异常,请教作者同志
- com.dbay.apns4j.impl.ApnsConnectionImpl [10] dev-10 Connection reset
- It can not run in jdk 1.7 HOT 2
- 11:05:02,310 ERROR ApnsConnectionImpl:178 - pro-1 Broken pipe
- com.dbay.apns4j.impl.ApnsConnectionImpl.startErrorWorker() HOT 1
- iOS证书过期之后,用新的证书报错如下,是证书的问题吗?
- 批量发送
- Do we support authKey.p8?
- support title-loc-key?
- 发送完成后怎么拿到应答
- 不同产品推送问题 HOT 1
- feedback service问题 HOT 1
- 有多应用,多证书ApnsServiceImpl创建的问题 HOT 6
- apns证书问题 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbay-apns-for-java.