Closed jondanao closed 7 years ago
@jondanao What is FCM_POST_URL set to?
hi @jamaalscarlett https://fcm.googleapis.com/fcm/send
I created a new django project, installed this package and did all the same setup as the project mentioned here. It worked.
So I uninstalled and installed again this package to the existing project. But error still persists. I'm lost. I can't pinpoint if it clashes with other installed packages. Here's my requirements.txt:
apns2==0.3.0
appdirs==1.4.3
asn1crypto==0.22.0
boto==2.48.0
cffi==1.10.0
cookies==2.2.1
coverage==4.4.1
cryptography==2.0.2
Django==1.11.1
django-bootstrap-form==3.2.1
django-debug-toolbar==1.8
django-push-notifications==1.5.0
django-storages==1.6.3
djangorestframework==3.6.3
drf-tracking==1.2.0
Faker==0.7.18
h2==2.6.2
hpack==3.0.0
hyper==0.7.0
hyperframe==3.2.0
idna==2.5
olefile==0.44
packaging==16.8
phonenumbers==8.6.0
Pillow==4.1.1
psycopg2==2.7.1
py==1.4.33
pycparser==2.18
Pygments==2.2.0
PyJWT==1.5.2
pyparsing==2.2.0
pytest==3.1.0
pytest-cov==2.5.1
pytest-django==3.1.2
pytest-mock==1.6.2
pytest-sugar==0.8.0
python-dateutil==2.6.1
pytz==2017.2
requests==2.14.2
responses==0.5.1
six==1.10.0
sqlparse==0.2.3
termcolor==1.1.0
"No route to host" That sounds like a networking issue. Can you ping the fcm endpoint from the server? Does a curl command from the server work?
@jamaalscarlett : sure is a networking issue. On my local machine, I get this error, but when I execute this on AWS, it does work just fine. Can't really figure out what's causing the error.
This error has nothing to do with this library.
Sending push notification to iOS has been successful. But I get this error when sending test message to Android.
The error seems to be happening in
gcm.py
.settings.py
Error
Did I miss anything in the setup? Thanks!