Not able to insert Event ; Getting "The resource was not found." message on Google Calendar API Explorer

2,904 views
Skip to first unread message

Dheeraj

unread,
Sep 18, 2012, 6:43:29 AM9/18/12
to google-ca...@googlegroups.com
Hi , 
I am trying to perform "insert" operation for Events . i am able to get Events using my AccessToken(which has scope of : https://www.googleapis.com/auth/calendar)  
but each time i try to insert it i get below error


404 Not Found
- Hide headers -
cache-control:  private, max-age=0
content-type:  application/json; charset=UTF-8
date:  Tue, 18 Sep 2012 10:22:15 GMT
expires:  Tue, 18 Sep 2012 10:22:15 GMT
server:  GSE
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}

My request is as follows

POST https://www.googleapis.com/calendar/v3/calendars/room1.ts%40gmail.com%20/events?sendNotifications=true&key={YOUR_API_KEY}

Content-Type:  application/json
Authorization:  Bearer ya29.AHES6ZSM5PirkSmScdew4NipJLi1guYpMl_N6ufmZyXGJjBq
X-JavaScript-User-Agent:  Google APIs Explorer
{
"end": {
"dateTime": "2012-09-18T06:15:00Z",
"timeZone": "UTC"
},
"start": {
"dateTime": "2012-09-18T06:00:00Z",
"timeZone": "UTC"
}
}

please tell me how to make it work ..
i am sending http post request to url and not using any client library.

Czarek Żurawski

unread,
Sep 24, 2012, 6:23:37 AM9/24/12
to google-ca...@googlegroups.com
are you sure that calendar ID is correct?

the response tells that there is no resource based on this ID
http://support.google.com/calendar/bin/answer.py?hl=en&answer=63962#calID

Dheeraj

unread,
Jul 30, 2013, 3:33:24 AM7/30/13
to google-ca...@googlegroups.com
HI , I am trying to get list of events my CalendarId is "desk3...@gmail.com" i have shared this with my project gmail account . i have verified that this calendar is present unter calendar list of my project's gmail account and from there , even i can update events successfully , 
every time i send request for list of events i get "resource not found"
My request is as below 
------------------------------
ET https://www.googleapis.com/calendar/v3/calendars/Desk3.int64%40gmail.com/events?key={YOUR_API_KEY}

Authorization:  Bearer ya29.AHES6ZTdpn7QneLjlh8K3Kzer_BzTsQHMqBaBavDcUX2HiIQyQ
X-JavaScript-User-Agent:  Google APIs Explorer

and response 


404 Not Found
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}

please reply as soon as possible ...
Thank you

Himanshu Jain

unread,
Jul 30, 2013, 3:40:54 AM7/30/13
to google-ca...@googlegroups.com
Hi,
Just try the same process over here https://developers.google.com/google-apps/calendar/v3/reference/events/list . Firstly client on authenticate to authenticate your self and then specify the calendarID and if you want to specify any time period just specify that too specify the date format in 2013-07-30T00:00:00.000Z

Dheeraj

unread,
Jul 30, 2013, 4:51:08 AM7/30/13
to google-ca...@googlegroups.com
HI , 
i just tried it there but same result..
please help ...as soon as possible ...
thank you

Himanshu Jain

unread,
Jul 30, 2013, 5:09:42 AM7/30/13
to google-ca...@googlegroups.com
There are two reason for this :
1) Either you are giving wrong calendar ID
2) You are not authenticating user
Solution:
1) open the Link that i have sent you, mention the calendarID as "primary" no need to specify any particular CalendarID, primary will automatically access the calendar that is linked with the authenticated email ID.
2) there is someting mentioned "Authorize requests using OAuth 2.0:
" on the right hand side of CalendarID, click over that button and make it blue color.


On Tuesday, 18 September 2012 16:13:30 UTC+5:30, Dheeraj wrote:

DevCalendar Test

unread,
Jul 30, 2013, 5:19:39 AM7/30/13
to google-ca...@googlegroups.com
Hi Himanshu, 
actully i am sharing another account's primary calendar with my project's account and then accessing it from my project's account using calendarId, 
though i am able to get event list for other shared email account's calendar but not any new calendar i am adding this happened second time with me today , first one took 4 hrs to start working and i did not change anything it just start working 

Please help ....


--
You received this message because you are subscribed to a topic in the Google Groups "Google Calendar API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-calendar-api/rYRNGiPyoWE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-calendar...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.

DevCalendar Test

unread,
Jul 30, 2013, 5:21:15 AM7/30/13
to google-ca...@googlegroups.com
I just followed with your given steps for primary its working but not shared one , though with other shared calendar its working ..... but not with this , i have verified that calendar listed there and calendarid, i am giving is correct

Reply all
Reply to author
Forward
0 new messages