InternalServerError when sending push message to iOS device through FCM

1,451 views
Skip to first unread message

Ulrik Gammelby

unread,
Mar 13, 2017, 5:11:01 AM3/13/17
to android-gcm
Hello,

I am struggling with sending push notifications through FCM - the console says "Failed" when sending to a specific device. If sending to all, it says success but I don't see any notification. When sending through curl, I get an internal server error:

curl --header "Content-Type: application/json" --header "Authorization: key=AAAAs...Ukq-6" https://fcm.googleapis.com/fcm/send -d '{"notification": {"body": "Hello from curl via FCM!", "sound": "default"}, "priority": "high", "to": "f5au...Qpi"}' --verbose


Which yields the following output:

...

< HTTP/2 200 

...

{"multicast_id":6251413622120464223,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InternalServerError"}]}


If I specify a wrong recipient, I get an InvalidRegistration error as expected. Similarly, a bad auth key yields some authentication error as expected. Valid input yields the shown internal server error.


I followed the debugging guidelines in https://firebase.googleblog.com/2017/01/debugging-firebase-cloud-messaging-on.html. I can send notifications to the app through APN with curl just fine.

Any ideas about what is going on? And most importantly, how to debug situations like this further ourselves?

Thanks!

Ulrik

Diego Giorgini

unread,
Mar 13, 2017, 3:03:00 PM3/13/17
to android-gcm
Hi Ulrik,

please contact https://firebase.google.com/support/ which is better suited to provide 1:1 support.

Thanks
- Diego

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/29241399-0aab-4f54-a172-b893d7d07ece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages