senthilking / apns-php

Automatically exported from code.google.com/p/apns-php
0 stars 0 forks source link

Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195 #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello
I'm trying to use apnsphp .I've implemented my push code from the example of 
APNSPHP push sample.
However when I try to send a push notification message it says unable to 
connect ssl://gateway.sandbox.push.apple.com:2195 .
I've checked via telnet and my server is able to connect to above address.
What may be the problem?

Wed, 04 Jul 2012 10:50:31 +0300 ApnsPHP[2691]: INFO: Trying 
ssl://gateway.sandbox.push.apple.com:2195... Wed, 04 Jul 2012 10:50:31 +0300 
ApnsPHP[2691]: ERROR: Unable to connect to 
'ssl://gateway.sandbox.push.apple.com:2195': php_network_getaddresses: 
getaddrinfo failed: Name or service not known (0) Wed, 04 Jul 2012 10:50:31 
+0300 ApnsPHP[2691]: INFO: Retry to connect (1/3)... Wed, 04 Jul 2012 10:50:32 
+0300 ApnsPHP[2691]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 
Wed, 04 Jul 2012 10:50:32 +0300 ApnsPHP[2691]: ERROR: Unable to connect to 
'ssl://gateway.sandbox.push.apple.com:2195': php_network_getaddresses: 
getaddrinfo failed: Name or service not known (0) Wed, 04 Jul 2012 10:50:32 
+0300 ApnsPHP[2691]: INFO: Retry to connect (2/3)... Wed, 04 Jul 2012 10:50:33 
+0300 ApnsPHP[2691]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 
Wed, 04 Jul 2012 10:50:33 +0300 ApnsPHP[2691]: ERROR: Unable to connect to 
'ssl://gateway.sandbox.push.apple.com:2195': php_network_getaddresses: 
getaddrinfo failed: Name or service not known (0) Wed, 04 Jul 2012 10:50:33 
+0300 ApnsPHP[2691]: INFO: Retry to connect (3/3)... Wed, 04 Jul 2012 10:50:34 
+0300 ApnsPHP[2691]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 
Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to 
connect to 'ssl://gateway.sandbox.push.apple.com:2195': 
php_network_getaddresses: getaddrinfo failed: Name or service not known (0)' in 
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/ApnsPHP/Abstract.php:35
2 Stack trace: #0 
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/ApnsPHP/Abstract.php(29
5): ApnsPHP_Abstract->_connect() #1 
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/pushNotification.php(55
): ApnsPHP_Abstract->connect() #2 {main} thrown in 
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/ApnsPHP/Abstract.php 
on line 352

Original issue reported on code.google.com by meeaps...@gmail.com on 4 Jul 2012 at 7:54

GoogleCodeExporter commented 8 years ago
Dear,

The project source code has moved to github; if your issue is still valid, 
please open it on github page https://github.com/duccio/ApnsPHP/issues

Thanks.

Original comment by aldo.arm...@gmail.com on 26 Oct 2012 at 11:46