Hi

I am getting an internal server error, is there something wrong going
on with Google Calendar off-late? Here's my post message:

$ telnet www.google.com 80
Trying 64.233.161.104...
Connected to www.l.google.com.
Escape character is '^]'.
POST /calendar/feeds/default/private/full HTTP/1.1
Content-Type: application/atom+xml; charset=UTF-8
Content-Length: 645
Authorization: AuthSub token="CLGm3sfBDxCm-qal-_____8B"
Host: www.google.com
Connection: keep-alive

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://
schemas.google.com/g/2005'>
  <title type="text">Tennis with Beth</title>
  <content type="text">Meet for a quick lesson.</content>
  <author>
    <name>Venkata Nanduri</name>
  </author>
  <gd:transparency value="http://schemas.google.com/g/
2005#event.opaque"></gd:transparency>
  <gd:eventStatus value="http://schemas.google.com/g/
2005#event.confirmed"></gd:eventStatus>
  <gd:where valueString="Rolling Lawn Courts"></gd:where>
  <gd:when startTime="2007-04-17T15:00:00.000Z"
endTime="2007-04-17T17:00:00.000Z"></gd:when>
</entry>

The error looks like below:

HTTP/1.1 500 Internal Server Error
Content-Type: text/plain; charset=iso-8859-1
Cache-control: private
Content-Length: 17
Date: Mon, 07 May 2007 06:14:53 GMT
Server: GFE/1.3
nnCoection: Close


On May 7, 2:16 am, KoolGuy <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am getting an internal server error, is there something wrong going
> on with Google Calendar off-late? Here's my post message:
>
> $ telnetwww.google.com80
> Trying 64.233.161.104...
> Connected towww.l.google.com.
> Escape character is '^]'.
> POST /calendar/feeds/default/private/full HTTP/1.1
> Content-Type: application/atom+xml; charset=UTF-8
> Content-Length: 645
> Authorization: AuthSub token="CLGm3sfBDxCm-qal-_____8B"
> Host:www.google.com
> Connection: keep-alive
>
> <?xml version='1.0' encoding='UTF-8'?>
> <entry xmlns='http://www.w3.org/2005/Atom'xmlns:gd='http://
> schemas.google.com/g/2005'>
>   <title type="text">Tennis with Beth</title>
>   <content type="text">Meet for a quick lesson.</content>
>   <author>
>     <name>Venkata Nanduri</name>
>   </author>
>   <gd:transparency value="http://schemas.google.com/g/
> 2005#event.opaque"></gd:transparency>
>   <gd:eventStatus value="http://schemas.google.com/g/
> 2005#event.confirmed"></gd:eventStatus>
>   <gd:where valueString="Rolling Lawn Courts"></gd:where>
>   <gd:when startTime="2007-04-17T15:00:00.000Z"
> endTime="2007-04-17T17:00:00.000Z"></gd:when>
> </entry>
>
> On Apr 10, 8:20 pm, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote:
>
> > Hello Venkata,
>
> > I haven't seen this error happen only when POSTing.  Are you using the
> > same AuthSub token for retrieving your events?
>
> > I don't see 'session=1' in your AuthSubRequest link.  For calendar,
> > you need to specify 'session=1' in the URL.  This will cause a single-
> > use token to be passed to your application via the 'token' parameter.
> > You then should upgrade this token to a session token using the
> > AuthSubSessionToken method.  See the following KB article for more
> > info:http://code.google.com/support/bin/answer.py?answer=55832&topic=10364
>
> > Note - this would usually cause a 'token revoked' error instead of a
> > 'wrong scope' error.
>
> > Let us know if this fixes your issue.
>
> > Cheers,
>
> > -Ryan
>
> > On Apr 7, 10:05 pm, "KoolGuy" <[EMAIL PROTECTED]> wrote:
>
> > > Hi
>
> > > I am really running out of time, but am unable to get help fixing this
> > > problem. Can somebody throw some help on this problem? I am describing
> > > the problem again here:
>
> > > I am getting an error saying:
>
> > > HTTP/1.0 401 Token invalid - AuthSub token has wrong scope
> > > WWW-Authenticate: AuthSub realm="https://www.google.com/accounts/
> > > AuthSubRequest"
> > > Cache-control: private
> > > Content-Length: 213
> > > Date: Sun, 08 Apr 2007 04:56:56 GMT
> > > Content-Type: text/html
> > > Server: GFE/1.3
> > > Connection: Keep-Alive
>
> > > My Request looks as follows:
>
> > > POST /calendar/feeds/default/private/full HTTP/1.0
> > > Authorization: AuthSub token="COfE286iARC9oJyx-_____8B"
> > > Content-Type: application/atom+xml
> > > Content-Length: 603
> > > HOST:www.google.com
> > > Connection: keep-alive
>
> > > <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/
> > > 2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'><title
> > > type='text'>Tennis with Beth</title><content type='text'>Meet for a quick 
> > > lesson.</content><author><name>Venkata 
> > > Nanduri</name></author><gd:transparency 
> > > value='http://schemas.google.com/g/2005#event.opa
>
> > > que'></gd:transparency><gd:eventStatus value='http://
> > > schemas.google.com/g/2005#event.confirmed'></gd:eventStatus><gd:where
> > > valueString='Rolling Lawn Courts'></gd:where
>
> > > ><gd:when startTime='2007-04-17T15:00:00.000Z' 
> > > >endTime='2007-04-17T17:00:00.000Z'></gd:when></entry>
>
> > > my AuthSubtoken link:
> > > https%3a%2f%2fmcfl1u5v.mycoy.com%3a1443%2fcgi-bin
> > > %2fim0drxc3%2fconsumer
> > > %2fcobrArticle.jsp%3farticle%3dPDPDownloadForm%26LeftNavTemplate
> > > %3dLftNavOtcTmpl%26
> > > LeftNavHighlight%3dNavPdpDownloadForm%26MarcoPolo%3dY%26BV_SessionID%3d
> > > %40%40%40%
> > > 400900878657.1176008059%40%40%40%40%26BV_EngineID
> > > %3dccccaddkjddihfkcejicegjdfgldfoi.0&scope=
> > > http%3a%2f%2fwww.google.com%2fcalendar%2ffeeds%2f
>
> > > I am able to successfully do a GET ( I am getting Feed from Google).
> > > But, its cribbing on me only for a POST. Can somebody help me on this?
> > > I can also give a TCPDump if somebody contacts me separately.
>
> > > Thanks
> > > Venkata nanduri
>
> > > On Mar 15, 10:55 am, "Ryan Boyd (Google)" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Hello Venkata,
>
> > > > The problem with the content of your POST request in the above message
> > > > is your host header.  The value should be 'www.google.com', not
> > > > 'http://www.google.com'.
>
> > > > Other than that, I believe your request is good.  I cleaned it up and
> > > > simplified it a bit for my testing and was able to successfully get
> > > > the following working (note: groups will probably break it slightly):
>
> > > > POST /calendar/feeds/default/private/full HTTP/1.1
> > > > Content-Type: application/atom+xml; charset=UTF-8
> > > > Content-Length: 645
> > > > Authorization: AuthSub token="COfE286iARD3w5tA"
> > > > Host:www.google.com
> > > > Connection: keep-alive
>
> > > > <?xml version='1.0' encoding='UTF-8'?>
> > > > <entry xmlns='http://www.w3.org/2005/Atom'xmlns:gd='http://
> > > > schemas.google.com/g/2005'>
> > > >   <title type="text">Tennis with Beth</title>
> > > >   <content type="text">Meet for a quick lesson.</content>
> > > >   <author>
> > > >     <name>Venkata Nanduri</name>
> > > >   </author>
> > > >   <gd:transparency value="http://schemas.google.com/g/
> > > > 2005#event.opaque"></gd:transparency>
> > > >   <gd:eventStatus value="http://schemas.google.com/g/
> > > > 2005#event.confirmed"></gd:eventStatus>
> > > >   <gd:where valueString="Rolling Lawn Courts"></gd:where>
> > > >   <gd:when startTime="2007-04-17T15:00:00.000Z"
> > > > endTime="2007-04-17T17:00:00.000Z"></gd:when>
> > > > </entry>
>
> > > > This will result in redirect with a gsessionid in the URL.  Just add
> > > > that to the path to which you are POSTing and you should be all set.
>
> > > > Cheers,
>
> > > > -Ryan
>
> > > > On Mar 9, 6:32 pm, "KoolGuy" <[EMAIL PROTECTED]> wrote:
>
> > > > > As I could not figure out whats on wire with my XML, I tried testing
> > > > > my XML using cygwin's command prompt the following way:
>
> > > > > *****************************************************************************************************
> > > > > $telnet google.com 80
> > > > > $POST /calendar/feeds/default/private/full HTTP/1.1
> > > > > Content-Type: application/atom+xml; charset=UTF-8
> > > > > Content-Length: 739
> > > > > Authorization: AuthSub token="COfE286iARD3w5tA"
> > > > > Host:http://www.google.com
> > > > > Connection: keep-alive
>
> > > > > <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/
> > > > > 2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'><category
> > > > > scheme="http://schemas.google.com/g/2005#kind"; term="http://
> > > > > schemas.google.com/g/2005#event"></category><title type="text">Tennis
> > > > > with Beth</title><content type="text">Meet for a quick lesson.</
> > > > > content><author><name>Venkata Nanduri</
> > > > > name><email>[EMAIL PROTECTED]</email></author><gd:transparency
> > > > > value="http://schemas.google.com/g/2005#event.opaque";></
> > > > > gd:transparency><gd:eventStatus value="http://schemas.google.com/g/
> > > > > 2005#event.confirmed"></gd:eventStatus><gd:where valueString="Rolling
> > > > > Lawn Courts"></gd:where><gd:when startTime="2007-04-17T15:00:00.000Z"
> > > > > endTime="2007-04-17T17:00:00.000Z"/></entry>
>
> > > > > ***********************************************************************************************************
> > > > > I am getting a response as:
>
> > > > > *********************************************************************************
> > > > > HTTP/1.1 501 Not Implemented
> > > > > Content-Type: text/html
> > > > > Server: GWS/2.1
> > > > > Content-Length: 1343
> > > > > Date: Sat, 10 Mar 2007 01:29:12 GMT
> > > > > Cneonction: Close
>
> > > > > <html><head>
> > > > > <meta http-equiv="content-type" content="text/html;charset=utf-8">
> > > > > <title>501 Not Implemented</title>
> > > > > <style><!--
> > > > > body {font-family: arial,sans-serif}
> > > > > div.nav {margin-top: 1ex}
> > > > > div.nav A {font-size: 10pt; font-family: arial,sans-serif}
> > > > > span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight:
> > > > > bold}
> > > > > div.nav A,span.big {font-size: 12pt; color: #0000cc}
> > > > > div.nav A {font-size: 10pt; color: black}
> > > > > A.l:link {color: #6f6f6f}
> > > > > A.u:link {color: green}
> > > > > //--></style>
> > > > > <script><!--
> > > > > var rc=501;
> > > > > //-->
> > > > > </script>
> > > > > </head>
> > > > > <body text=#000000 bgcolor=#ffffff>
> > > > > <table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td
> > > > > rowspan=3 width=1% nowrap>
> > > > > <b><font face=times color=#0039b6 size=10>G</font><font face=times
> > > > > color=#c41200 size=10>o</font><font face=times color=#f3c518
> > > > > size=10>o</font><font face=times color=#0039b6 size=10>g</font><font
> > > > > face=times color=#30a72f size=10>l</font><font face=times
> > > > > color=#c41200 size=10>e</font>&nbsp;&nbsp;</b>
> > > > > <td>&nbsp;</td></tr>
> > > > > <tr><td bgcolor=#3366cc><font face=arial,sans-serif
> > > > > color=#ffffff><b>Error</b></td></tr>
> > > > > <tr><td>&nbsp;</td></tr></table>
> > > > > <blockquote>
> > > > > <H1>Not Implemented</H1>
> > > > > The server is unable to process your request.
>
> > > > > <p>
> > > > > </blockquote>
> > > > > <table width=100% cellpadding=0 cellspacing=0><tr><td
> > > > > bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table>
> > > > > </body></html>
> > > > > ****************************************************************************************
> > > > > Can somebody help me out pls.... I am stuck at the same point for two
> > > > > weeks....
>
> > > > > On Mar 4, 3:35 am, "Frank Mantek" <[EMAIL PROTECTED]> wrote:
>
> > > > > > And as I have pointed out, what you are sending most likely is not 
> > > > > > what you
> > > > > > are sending :)
>
> > > > > > I believe you that this is a hard coded string, but somewhere, this 
> > > > > > string
> > > > > > is transformed and put on the wire via HTTP. So what you are sending
> > > > > > includes headers etc, all the good stuff to make this a complete 
> > > > > > HTTP
>
> ...
>
> read more �


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to