tahoangminh269 / apns-php

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

Invalid token (code 8) occurs after an internal error is encountered #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
apns-php sends notifications successfully and somewhere in the middle it 
encounters an internal error(999). Right after the internal error, apns-php 
treats the remaining tokens as Invalid tokens(8). And I have made sure that the 
tokens that are claimed invalid are random, it rejects the tokens as invalid 
randomly. In fact i have noticed that the tokens who are claimed to be invalid 
will be accepted as a valid one when making another request.

Here is the log 

INFO: Sending messages queue, run #10: 12 message(s) left in queue.
STATUS: Sending message ID 406 [custom identifier: Message-Badge-4173] (2/3): 
198 bytes.
STATUS: Sending message ID 407 [custom identifier: Message-Badge-4174] (1/3): 
198 bytes.
STATUS: Sending message ID 408 [custom identifier: Message-Badge-4175] (1/3): 
198 bytes.
STATUS: Sending message ID 409 [custom identifier: Message-Badge-4176] (1/3): 
198 bytes.
STATUS: Sending message ID 410 [custom identifier: Message-Badge-4177] (1/3): 
198 bytes.
STATUS: Sending message ID 411 [custom identifier: Message-Badge-4178] (1/3): 
198 bytes.
STATUS: Sending message ID 412 [custom identifier: Message-Badge-4179] (1/3): 
198 bytes.
STATUS: Sending message ID 413 [custom identifier: Message-Badge-4180] (1/3): 
198 bytes.
STATUS: Sending message ID 414 [custom identifier: Message-Badge-4181] (1/3): 
198 bytes.
STATUS: Sending message ID 415 [custom identifier: Message-Badge-4182] (1/3): 
198 bytes.
STATUS: Sending message ID 416 [custom identifier: Message-Badge-4183] (1/3): 
198 bytes.
STATUS: Sending message ID 417 [custom identifier: Message-Badge-4184] (1/3): 
198 bytes.
ERROR: Unable to send message ID 406:Invalid token(8).

INFO: Sending messages queue, run #11: 12 message(s) left in queue.
WARNING: Message ID 406 [custom identifier: Message-Badge-4173] has an 
unrecoverable error (8), removing from queue without retrying...
STATUS: Sending message ID 407 [custom identifier: Message-Badge-4174] (1/3): 
198 bytes.
STATUS: Sending message ID 408 [custom identifier: Message-Badge-4175] (1/3): 
198 bytes.
STATUS: Sending message ID 409 [custom identifier: Message-Badge-4176] (1/3): 
198 bytes.
STATUS: Sending message ID 410 [custom identifier: Message-Badge-4177] (1/3): 
198 bytes.
STATUS: Sending message ID 411 [custom identifier: Message-Badge-4178] (1/3): 
198 bytes.
STATUS: Sending message ID 412 [custom identifier: Message-Badge-4179] (1/3): 
198 bytes.
STATUS: Sending message ID 413 [custom identifier: Message-Badge-4180] (1/3): 
198 bytes.
STATUS: Sending message ID 414 [custom identifier: Message-Badge-4181] (1/3): 
198 bytes.
STATUS: Sending message ID 415 [custom identifier: Message-Badge-4182] (1/3): 
198 bytes.
STATUS: Sending message ID 416 [custom identifier: Message-Badge-4183] (1/3): 
198 bytes.
STATUS: Sending message ID 417 [custom identifier: Message-Badge-4184] (1/3): 
198 bytes.
ERROR: Unable to send message ID 407:Invalid token(8).

INFO: Sending messages queue, run #12: 11 message(s) left in queue.
WARNING: Message ID 407 [custom identifier: Message-Badge-4174] has an 
unrecoverable error (8), removing from queue without retrying...
STATUS: Sending message ID 408 [custom identifier: Message-Badge-4175] (1/3): 
198 bytes.
STATUS: Sending message ID 409 [custom identifier: Message-Badge-4176] (1/3): 
198 bytes.
STATUS: Sending message ID 410 [custom identifier: Message-Badge-4177] (1/3): 
198 bytes.
STATUS: Sending message ID 411 [custom identifier: Message-Badge-4178] (1/3): 
198 bytes.
STATUS: Sending message ID 412 [custom identifier: Message-Badge-4179] (1/3): 
198 bytes.
STATUS: Sending message ID 413 [custom identifier: Message-Badge-4180] (1/3): 
198 bytes.
STATUS: Sending message ID 414 [custom identifier: Message-Badge-4181] (1/3): 
198 bytes.
STATUS: Sending message ID 415 [custom identifier: Message-Badge-4182] (1/3): 
198 bytes.
STATUS: Sending message ID 416 [custom identifier: Message-Badge-4183] (1/3): 
198 bytes.
STATUS: Sending message ID 417 [custom identifier: Message-Badge-4184] (1/3): 
198 bytes.

I have red another issue with the same scenario, this implies there is a bug to 
address.
Pls reply as soon as u can

Original issue reported on code.google.com by beakal.g...@approbatics.com on 28 Aug 2012 at 9:58

GoogleCodeExporter commented 8 years ago
Server Info:
Operating system    Linux
Architecture            x86_64
PHP version         5.3.4

Original comment by beakal.g...@approbatics.com on 28 Aug 2012 at 10:06

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:47