-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST request Google Calendar results in "Parse Error" #7
Comments
It's the response from the server so it's not a problem with the package, so you shouldn't ask it here. Have you tried inserting only the |
Thanks for the quick response! When I only insert the summary it still responds with a parseError. I tried using your suggested code in this issue:
But then I get the following error:
I'm not sure what to do.. Could you please help me with this? |
Have you tried without setting headers? It's hard to tell what is the reason. |
Yes I also tried without headers but then the API says it So it seems that the API only accepts JSON formatted data but when I give it JSON data by putting it in the |
You know, it's hard to predict what is the source of the error. I've created this package to access Google Endpoint API. It's based on the node.js package. It worked well in my project. I haven't tested it with Calendar API. However as you said it work on getting values but you can't insert. What I would suggest is checking in Google Chrome Developer Tools what requests are send when using this package and what requests are send using the Google Sandbox. Thanks to that you may compare the data and see a difference. |
invalidRequest (HTTP status 400): Your request was not a valid request. |
@shamoon1992 and? :) |
Hi have you resolved this? I’m having the same issue. |
same fucking error!!!!! |
I'm also getting this error response from Google when trying to create a calendar event.
I'm only setting a
EDIT I found the solution. It was that I was simply missing the |
Even after adding |
Thanks! that was. I had " |
I'm trying to integrate Google Calendar in my meteor app. Reading events goes fine but when I try to create an event by using the post request I'm getting a Parse Error.
This is the code for the request (using Google's example code):
However the response I'm getting back is an Parse Error with no additional information.
Error: failed [400] { "error": { "errors": [ { "domain": "global", "reason": "parseError", "message": "Parse Error" } ], "code": 400, "message": "Parse Error" } }
The text was updated successfully, but these errors were encountered: