Closed cristian-pirnog closed 6 years ago
Odd, "dial tcp: missing address" is an error I haven't seen before. Could be a firewall issue, could be a certificate issue, could be an incorrect hostname configured, or dns?
See https://stackoverflow.com/a/21631780 (openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert YourSandboxSSLCertAndPrivateKey.pem -debug -showcerts -CAfile sandbox-server-ca-cert.pem
for sandbox, openssl s_client -connect gateway.push.apple.com:2195 -cert YourSSLCertAndPrivateKey.pem -debug -showcerts -CAfile server-ca-cert.pem
for production
If you're able to establish a connection manually from the same hosts/docker container as uniqush, then it's possible the below steps would help
/psps
will tell you everything about how your PSPs are set up. If you're pushing to a production build, then you need to use the production certificate, with the production endpoint. If you're pushing to a sandbox build, then you need to use the sandbox certificate, with the sandbox endpointIt'd also be helpful if you posted a copy of the output of /psps
(replace the GCM apikey and other private keys/tokens with placeholders), in case the apns hostname was wrong
Thank you for the prompt response. Your second guess was correct. I was using a production certificate and trying to push to a sandbox environment. What put me off was the error message {{dial tcp: missing address}} - I thought that maybe I had to configure something for APNS before starting uniqush. Sorry for the unnecessary bother.
I am facing the same issue and openssl
command is working fine.
And it is working fine for sandbox=true
Updated to an issue #249
I'm using uniqush version 2.3.0 (from the official docker image) and get this error when trying to send a push notification to an iOS device:
All the other actions (e.g.
/addpsp
,/subscribe
, etc.) go through without errors for bothAPNS
andgcm
. Also, I can send notifications to Android devices usinggcm
.