immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.43k stars 452 forks source link

Unable to send message ID 1: Internal error #153

Open juanqui66 opened 7 years ago

juanqui66 commented 7 years ago

Hello, I can not send a PUSH message in sandbox mode (in production mode I have not tried it yet). Or I have timeout problems or when writing (@fwrite) always says '0 bytes written'.

Any ideas?

I leave here the trace that leaves the sending of a single message PUSH:

Tue, 02 May 2017 13:23:09 +0200 ApnsPHP [22524]: INFO: Trying tls: //gateway.sandbox.push.apple.com: 2195 ... Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: INFO: Connected to tls: //gateway.sandbox.push.apple.com: 2195. Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: INFO: Sending messages queue, run # 1: 1 message (s) left in queue. Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 167 bytes. Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: ERROR: Unable to send message ID 1: Internal error (0 bytes written instead of 167 bytes) (999). Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: INFO: Disconnected. Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: INFO: Trying tls: //gateway.sandbox.push.apple.com: 2195 ... Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: ERROR: Unable to connect to 'tls: //gateway.sandbox.push.apple.com: 2195': (0) Tue, 02 May 2017 13:23:10 +0200 ApnsPHP [22524]: INFO: Retry to connect (1/3) ... Tue, 02 May 2017 13:23:11 +0200 ApnsPHP [22524]: INFO: Trying tls: //gateway.sandbox.push.apple.com: 2195 ... Tue, 02 May 2017 13:23:12 +0200 ApnsPHP [22524]: ERROR: Unable to connect to 'tls: //gateway.sandbox.push.apple.com: 2195': (0) Tue, 02 May 2017 13:23:12 +0200 ApnsPHP [22524]: INFO: Retry to connect (2/3) ... Tue, 02 May 2017 13:23:13 +0200 ApnsPHP [22524]: INFO: Trying tls: //gateway.sandbox.push.apple.com: 2195 ... Tue, 02 May 2017 13:23:14 +0200 ApnsPHP [22524]: ERROR: Unable to connect to 'tls: //gateway.sandbox.push.apple.com: 2195': (0) Tue, 02 May 2017 13:23:14 +0200 ApnsPHP [22524]: INFO: Retry to connect (3/3) ... Tue, 02 May 2017 13:23:15 +0200 ApnsPHP [22524]: INFO: Trying tls: //gateway.sandbox.push.apple.com: 2195 ... Tue, 02 May 2017 13:23:15 +0200 ApnsPHP [22524]: ERROR: Unable to connect to 'tls: //gateway.sandbox.push.apple.com: 2195': (0)


Fatal error </ b>: Uncaught ApnsPHP_Exception: Unable to connect to 'tls: //gateway.sandbox.push.apple.com: 2195': (0) in D: \ XAMPP \ htdocs \ easy_santa \ json \ 000 \ push \ ApnsPHP-master \ ApnsPHP \ Abstract.php: 396 Stack trace: ApnsPHP-master \ ApnsPHP \ Abstract.php (334): ApnsPHP_Abstract-> _connect ()

1 D: \ XAMPP \ htdocs \ easy_santa \ json \ 000 \ push \ ApnsPHP-master \ ApnsPHP \ Push.php (357): ApnsPHP_Abstract-> connect ()

2 D: \ XAMPP \ htdocs \ easy_santa \ json \ 000 \ push \ ApnsPHP-master \ ApnsPHP \ Push.php (185): ApnsPHP_Push-> _updateQueue (Array)

3 D: \ XAMPP \ htdocs \ easy_santa \ json \ 000 \ push \ ApnsPHP-master \ sample_push.php (80): ApnsPHP_Push-> send ()

4 {main}

  Thrown in D: \ XAMPP \ htdocs \ easy_santa \ json \ 000 \ push \ ApnsPHP-master \ ApnsPHP \ Abstract.php </ b> 396 </ b>