xtrinch / fcm-django

FCM Django: Send push notifications via django to websites, iOS & android mobile devices through FCM (Firebase Cloud Messaging)
http://fcm-django.readthedocs.io/
MIT License
775 stars 196 forks source link

FCMServerError: FCM server is temporarily unavailable #1

Closed gauravvjn closed 8 years ago

gauravvjn commented 8 years ago

followed the steps, e,g,

INSTALLED_APPS = (
        ...
        "fcm_django"
)

FCM_DJANGO_SETTINGS = {
        "FCM_SERVER_KEY": "[your api key]"
}

migrated and added one device in the table.

now I do

from fcm_django.models import FCMDevice
device = FCMDevice.objects.all().first()
device.send_message("Title", "Message")

this raises an exception saying FCMServerError: FCM server is temporarily unavailable

what could be the reason, am i missing something?

when I debugged it, in pyfcm, the response from google was 500 (in pyfcm/baseapi.py)

'\n\nInternal Server Error\n\n\n

Internal Server Error

\n

Error 500

\n\n\n'

xtrinch commented 8 years ago

Ok so if I understand correctly, the error was only temporary and it's working now? @gjain0 Because otherwise I will look into it, perhaps I am sending something that breaks the FCM server

gauravvjn commented 8 years ago

@xtrinch: Yes, it is working now. Thank you :)