Closed itsyogesh closed 10 years ago
Hi @yogeshkumar180592. Could you dump a excerpt of your response content?
at=info method=GET path=/static/admin/js/jquery.js host=gcmnotifications.herokuapp.com request_id=656770ad-1efb-4884-9cab-07ceddaac69d fwd="14.141.31.251" dyno=web.1 connect=3ms service=4ms status=304 bytes=141
This was the only dump I could find. Hope it helps.
@yogeshkumar180592 make sure that you have properly configured the GCM_APIKEY
. Without it I receive the same error as you.
The latest version 1.0.2
throws a more descriptive exceptions.
Hey,
I am able to register the device, but when I try sending a message even by django orm, I get this error. Traceback (most recent call last): File "", line 1, in
File "/app/.heroku/python/lib/python2.7/site-packages/gcm/models.py", line 37, in send_message
collapse_key=collapse_key)
File "/app/.heroku/python/lib/python2.7/site-packages/gcm/api.py", line 33, in send_gcm_message
return json.loads(response.content)
File "/app/.heroku/python/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/app/.heroku/python/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/app/.heroku/python/lib/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Is the dict file here not been decoded.
It works when I use it with my development server. But when I try doing it from heroku this is the error I receive.
Cheers, Yogesh