flexisip-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flexisip_push Invalid server response with Invalid token


From: Lai Li
Subject: Flexisip_push Invalid server response with Invalid token
Date: Fri, 20 Mar 2020 11:33:08 +0800

Hi,

I am trying to test flexisip push notification by using flexisip_pusher, and below is the log.
And I have no idea why it keeps saying my token is invalid. 
I have check my appid which is ios bundle id (com.alohastudio.example)
I also have pem file with correct path i think(/etc/flexisip/apn/com.alohastudio.example.pem)
And also get the push token from log while device register (E54711B07B73ACC75697E2D053465F31B78B6C08FD90062089CF952B32A209FB)
I think everything is ready but not work.
How do I fix it? thank you.


[root@7458fdca234e bin]# ./flexisip_pusher --pntype apple --appid com.alohastudio.example --pntok E54711B07B73ACC75697E2D053465F31B78B6C08FD90062089CF952B32A209FB --debug
Writing logs in : /var/opt/belledonne-communications/log/flexisip/flexisip-pusher.log
2020-03-20 03:25:57:410 flexisip-debug-Searching push notification client on dir [/etc/flexisip/apn]
2020-03-20 03:25:57:417 flexisip-debug-Certificate /etc/flexisip/apn/com.alohastudio.example.pem has a valid expiration: Apr 15 14:37:04 2021 GMT.
2020-03-20 03:25:57:419 flexisip-debug-Adding ios push notification client [com.alohastudio.example]
2020-03-20 03:25:57:420 flexisip-debug-PNR 0x2114080 payload is {"aps":{"alert":{"loc-key":"IM_MSG","loc-args":["Pusher"]},"sound":"msg.caf","badge":1},"call-id":"","pn_ttl":2592000,"uuid":"","send-time":"2020-03-20 03:25:57"}
2020-03-20 03:25:57:420 flexisip-debug-PushNotificationClient com.alohastudio.example.pem PNR 0x2114080 running, queue_size=0
2020-03-20 03:25:57:420 flexisip-debug-PushNotificationClient com.alohastudio.example.pem next, queue_size=1
2020-03-20 03:25:59:503 flexisip-debug-PushNotificationClient com.alohastudio.example.pem PNR 0x2114080 sent 223/223 data
2020-03-20 03:25:59:504 flexisip-debug-PushNotificationClient com.alohastudio.example.pem PNR 0x2114080 waiting for server response
2020-03-20 03:25:59:830 flexisip-debug-PushNotificationClient com.alohastudio.example.pem PNR 0x2114080 read 6 data:

2020-03-20 03:25:59:830 flexisip-warning-PushNotificationClient com.alohastudio.example.pem PNR 0x2114080 failed: Invalid server response: PNR 0x2114080 with identifier 1 failed with error 8 (Invalid token)
1 push notification(s) sent, 0 successfully and 1 failed.
There are failed requests, relaunch with --debug to consult exact error cause.
job is done, thanks for using ./flexisip_pusher. Bye!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]