I don't know why response code 400 Parse Error

2,017 views
Skip to first unread message

you...@naver.com

unread,
Jan 13, 2014, 10:09:33 AM1/13/14
to gcm-for-chr...@googlegroups.com
{
error
{
errors
[
1]
0:  
{
domain"global"
reason"parseError"
message"Parse Error"
}
-
-
code400
message"Parse Error"
}
-
}

why?


Pete Williamson

unread,
Jan 13, 2014, 12:21:20 PM1/13/14
to you...@naver.com, Google
We'll need a bit more information to help you out.  Would you be willing to share the call that caused the error?  Obviously something failed to parse, it would help if we could see what you sent to see why the parse failed.


--
You received this message because you are subscribed to the Google Groups "GCM for Chrome feedback" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcm-for-chrome-fe...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mike

unread,
Jan 24, 2014, 10:40:00 AM1/24/14
to gcm-for-chr...@googlegroups.com
maybe  it's your json, make sure it's in the body and content type is application/json 

Mike C

unread,
Jan 24, 2014, 12:26:35 PM1/24/14
to gcm-for-chr...@googlegroups.com
make sure you're post body is the json, and don't urlencode , let me know if that works and what you end up doing

post["body"] = "{ 'channelId':'321321313assfdsa', 'subchannelId':'0', 'payload':'please work'}"

Thanks!

Mahadev Bichewar

unread,
Nov 26, 2014, 6:07:28 AM11/26/14
to gcm-for-chr...@googlegroups.com
i am getting the same error,
here is my json,
{
  "title" : "file.txt"
}

i am getting,
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "parseError",
    "message": "Parse Error"
   }
  ],
  "code": 400,
  "message": "Parse Error"
 }
}

Please help if anyone knows about it.what is wrong with my JSON syntax? 

Mahadev Bichewar

unread,
Nov 26, 2014, 7:31:55 AM11/26/14
to gcm-for-chr...@googlegroups.com
Hi Seon, i am getting the same error,
this is Json i am trying to send

{
  "title" : "file.txt"
}
is there any thing wrong with it.??
it seems like you got the answer. Please reply if you knows it?
Reply all
Reply to author
Forward
0 new messages