Skip Menu |

This queue is for tickets about the WebService-Google-Reader CPAN distribution.

Report information
The Basics
Id: 68245
Status: resolved
Priority: 0/
Queue: WebService-Google-Reader

People
Owner: Nobody in particular
Requestors: hbar137s [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: starring entries fails
Date: Mon, 16 May 2011 11:29:55 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
OS: Redhat Linux 2.6.18-92.1.13.el5 Perl: v5.8.8 WebService:Google:Reader v0.18 Hi. This is a great module. However, I notice that starring entries fails at random at about once every ten entries. Do you know what the issue is? Thank you. Shahinur Rahman
On Mon May 16 14:30:23 2011, wrote: Show quoted text
> OS: Redhat Linux 2.6.18-92.1.13.el5 > Perl: v5.8.8 > WebService:Google:Reader v0.18 > > Hi. This is a great module. However, I notice that starring entries > fails at random at about once every ten entries. Do you know what the > issue is? Thank you.
You haven't really provided any details to identify the problem. It might be in your code, my module, or a google service issue. See these instructions on how to effectively report a bug: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html First off, you can try to diagnose yourself by examining any errors and enabling debug mode (see the docs). I just used a modified version of one of the example scripts and it starred every entry successfully. If you think there's a problem with the module, at the least, send a working code sample so I can try to replicate the problem.
Subject: Re: [rt.cpan.org #68245] starring entries fails
Date: Mon, 16 May 2011 12:06:35 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
Hi Gray. Sorry about my initial email. This is my first time to report a bug or a problem I am having. I have attached my source code. I will be happy if you can have a look. It takes read entries in Google Reader and posts them to Evernote as an email and then stars that entry. In the mean time, I will see what I can do with the debug mode. Thank you for your kind help! On Mon, May 16, 2011 at 11:54 AM, gray via RT <bug-WebService-Google-Reader@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68245 > > > On Mon May 16 14:30:23 2011,  wrote:
>> OS: Redhat Linux 2.6.18-92.1.13.el5 >> Perl: v5.8.8 >> WebService:Google:Reader v0.18 >> >> Hi. This is a great module. However, I notice that starring entries >> fails at random at about once every ten entries. Do you know what the >> issue is? Thank you.
> > You haven't really provided any details to identify the problem. It might be in your code, my > module, or a google service issue. See these instructions on how to effectively report a bug: > http://www.chiark.greenend.org.uk/~sgtatham/bugs.html > > First off, you can try to diagnose yourself by examining any errors and enabling debug mode > (see the docs). I just used a modified version of one of the example scripts and it starred > every entry successfully. If you think there's a problem with the module, at the least, send a > working code sample so I can try to replicate the problem. >

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #68245] starring entries fails
Date: Mon, 16 May 2011 14:27:35 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
I turned on debug. Following is one of the result of one of the entries that failed to get starred. I am not sure what to learn from this output. I will be very happy if you can guide me in solving the problem. Thank you! POST https://www.google.com/reader/api/0/edit-tag?ck=1305580289000&client=WebService%3A%3AGoogle%3A%3AReader%2F0.18 Accept-Encoding: gzip,deflate Authorization: GoogleLogin auth=DQAAAKQAAABITRcDaF8RXyByW4yn8a5AffpqDqlmgu95oKxyrlijZ7h5eqhdcJ28A3hlkhGDMIaf5Y_fMA0AjoNHRPzitDhzaHnirR-gUV5dHzB3g11He6SBl8x5ZgMG4DVdcIlgDIW8fJtp5Ku5MskEQH92uTqEybSkvo8teckujjD12D_Hlqgfs0B1sHze4boh0rwJGX8BlBm6ySr5VVV7IceON_THh6je_-m2N_LwnXFsue-I0g User-Agent: WebService::Google::Reader/0.18 Content-Length: 198 Content-Type: application/x-www-form-urlencoded a=user%2F-%2Fstate%2Fcom.google%2Fstarred&ac=edit&s=feed%2Fhttp%3A%2F%2Fjbpress.ismedia.jp%2Frss%2Fall.rdf&i=tag%3Agoogle.com%2C2005%3Areader%2Fitem%2Fdd88bf0fe78df955&T=%2F%2FE-XNb68fvspth68HOgZc3g HTTP/1.1 400 Bad Request Cache-Control: no-cache, no-store, max-age=0, must-revalidate Connection: close Date: Mon, 16 May 2011 21:11:30 GMT Pragma: no-cache Server: GSE Content-Length: 1334 Content-Type: text/html; charset=UTF-8 Expires: Fri, 01 Jan 1990 00:00:00 GMT Client-Date: Mon, 16 May 2011 21:11:30 GMT Client-Peer: 74.125.224.83:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com Client-SSL-Cipher: RC4-SHA Client-SSL-Socket-Class: IO::Socket::SSL Title: 400 Client Error X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Reader-Google-Bad-Token: true X-Reader-Google-Version: 540-000 X-Reader-User: 16613904645501221190 X-XSS-Protection: 1; mode=block <html><head><title>400 Client Error</title> <style type="text/css"> 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} </style></head> <body text="#000000" bgcolor="#ffffff"><table border="0" cellpadding="2" cellspacing="0" width="100%"></table> <table><tr><td rowspan="3" width="1%"><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> <td>&nbsp;</td></tr> <tr><td bgcolor="#3366cc"><font face="arial,sans-serif" color="#ffffff"><b>Error</b></font></td></tr> <tr><td>&nbsp;</td></tr></table> <blockquote><h1>Client Error</h1> There was an error in your request. <p></p></blockquote> <table width="100%" cellpadding="0" cellspacing="0"><tr><td bgcolor="#3366cc"><img alt="" width="1" height="4"></td></tr></table></body></html> Stale T token- retrying GET https://www.google.com/reader/api/0/token?ck=1305580290000&client=WebService%3A%3AGoogle%3A%3AReader%2F0.18 Accept-Encoding: gzip,deflate Authorization: GoogleLogin auth=DQAAAKQAAABITRcDaF8RXyByW4yn8a5AffpqDqlmgu95oKxyrlijZ7h5eqhdcJ28A3hlkhGDMIaf5Y_fMA0AjoNHRPzitDhzaHnirR-gUV5dHzB3g11He6SBl8x5ZgMG4DVdcIlgDIW8fJtp5Ku5MskEQH92uTqEybSkvo8teckujjD12D_Hlqgfs0B1sHze4boh0rwJGX8BlBm6ySr5VVV7IceON_THh6je_-m2N_LwnXFsue-I0g User-Agent: WebService::Google::Reader/0.18 (no content) HTTP/1.1 200 OK Cache-Control: private, max-age=0 Connection: close Date: Mon, 16 May 2011 21:11:30 GMT Server: GSE Content-Length: 24 Content-Type: text/plain; charset=UTF-8 Expires: Mon, 16 May 2011 21:11:30 GMT Client-Date: Mon, 16 May 2011 21:11:30 GMT Client-Peer: 74.125.224.82:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com Client-SSL-Cipher: RC4-SHA Client-SSL-Socket-Class: IO::Socket::SSL X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Reader-Google-Version: 540-000 X-Reader-User: 16613904645501221190 X-XSS-Protection: 1; mode=block //iBXwoEXXRdyFU8eLdJ8KfQ POST https://www.google.com/reader/api/0/edit-tag?ck=1305580290000&client=WebService%3A%3AGoogle%3A%3AReader%2F0.18 Accept-Encoding: gzip,deflate Authorization: GoogleLogin auth=DQAAAKQAAABITRcDaF8RXyByW4yn8a5AffpqDqlmgu95oKxyrlijZ7h5eqhdcJ28A3hlkhGDMIaf5Y_fMA0AjoNHRPzitDhzaHnirR-gUV5dHzB3g11He6SBl8x5ZgMG4DVdcIlgDIW8fJtp5Ku5MskEQH92uTqEybSkvo8teckujjD12D_Hlqgfs0B1sHze4boh0rwJGX8BlBm6ySr5VVV7IceON_THh6je_-m2N_LwnXFsue-I0g User-Agent: WebService::Google::Reader/0.18 Content-Length: 198 Content-Type: application/x-www-form-urlencoded a=user%2F-%2Fstate%2Fcom.google%2Fstarred&ac=edit&s=feed%2Fhttp%3A%2F%2Fjbpress.ismedia.jp%2Frss%2Fall.rdf&i=tag%3Agoogle.com%2C2005%3Areader%2Fitem%2Fdd88bf0fe78df955&T=%2F%2FE-XNb68fvspth68HOgZc3g HTTP/1.1 400 Bad Request Cache-Control: no-cache, no-store, max-age=0, must-revalidate Connection: close Date: Mon, 16 May 2011 21:11:30 GMT Pragma: no-cache Server: GSE Content-Length: 1334 Content-Type: text/html; charset=UTF-8 Expires: Fri, 01 Jan 1990 00:00:00 GMT Client-Date: Mon, 16 May 2011 21:11:30 GMT Client-Peer: 74.125.224.84:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com Client-SSL-Cipher: RC4-SHA Client-SSL-Socket-Class: IO::Socket::SSL Title: 400 Client Error X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Reader-Google-Bad-Token: true X-Reader-Google-Version: 540-000 X-Reader-User: 16613904645501221190 X-XSS-Protection: 1; mode=block <html><head><title>400 Client Error</title> <style type="text/css"> 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} </style></head> <body text="#000000" bgcolor="#ffffff"><table border="0" cellpadding="2" cellspacing="0" width="100%"></table> <table><tr><td rowspan="3" width="1%"><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> <td>&nbsp;</td></tr> <tr><td bgcolor="#3366cc"><font face="arial,sans-serif" color="#ffffff"><b>Error</b></font></td></tr> <tr><td>&nbsp;</td></tr></table> <blockquote><h1>Client Error</h1> There was an error in your request. <p></p></blockquote> <table width="100%" cellpadding="0" cellspacing="0"><tr><td bgcolor="#3366cc"><img alt="" width="1" height="4"></td></tr></table></body></html> Stale T token- retrying GET https://www.google.com/reader/api/0/token?ck=1305580290000&client=WebService%3A%3AGoogle%3A%3AReader%2F0.18 Accept-Encoding: gzip,deflate Authorization: GoogleLogin auth=DQAAAKQAAABITRcDaF8RXyByW4yn8a5AffpqDqlmgu95oKxyrlijZ7h5eqhdcJ28A3hlkhGDMIaf5Y_fMA0AjoNHRPzitDhzaHnirR-gUV5dHzB3g11He6SBl8x5ZgMG4DVdcIlgDIW8fJtp5Ku5MskEQH92uTqEybSkvo8teckujjD12D_Hlqgfs0B1sHze4boh0rwJGX8BlBm6ySr5VVV7IceON_THh6je_-m2N_LwnXFsue-I0g User-Agent: WebService::Google::Reader/0.18 (no content) HTTP/1.1 200 OK Cache-Control: private, max-age=0 Connection: close Date: Mon, 16 May 2011 21:11:30 GMT Server: GSE Content-Length: 24 Content-Type: text/plain; charset=UTF-8 Expires: Mon, 16 May 2011 21:11:30 GMT Client-Date: Mon, 16 May 2011 21:11:30 GMT Client-Peer: 74.125.224.80:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com Client-SSL-Cipher: RC4-SHA Client-SSL-Socket-Class: IO::Socket::SSL X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Reader-Google-Version: 540-000 X-Reader-User: 16613904645501221190 X-XSS-Protection: 1; mode=block //iBXwoEXXRdyFU8eLdJ8KfQ f On Mon, May 16, 2011 at 12:06 PM, S R <hbar137s@gmail.com> wrote: Show quoted text
> Hi Gray. Sorry about my initial email. This is my first time to report > a bug or a problem I am having. I have attached my source code. I will > be happy if you can have a look. It takes read entries in Google > Reader and posts them to Evernote as an email and then stars that > entry. In the mean time, I will see what I can do with the debug mode. > Thank you for your kind help! > > On Mon, May 16, 2011 at 11:54 AM, gray via RT > <bug-WebService-Google-Reader@rt.cpan.org> wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=68245 > >> >> On Mon May 16 14:30:23 2011,  wrote:
>>> OS: Redhat Linux 2.6.18-92.1.13.el5 >>> Perl: v5.8.8 >>> WebService:Google:Reader v0.18 >>> >>> Hi. This is a great module. However, I notice that starring entries >>> fails at random at about once every ten entries. Do you know what the >>> issue is? Thank you.
>> >> You haven't really provided any details to identify the problem. It might be in your code, my >> module, or a google service issue. See these instructions on how to effectively report a bug: >> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html >> >> First off, you can try to diagnose yourself by examining any errors and enabling debug mode >> (see the docs). I just used a modified version of one of the example scripts and it starred >> every entry successfully. If you think there's a problem with the module, at the least, send a >> working code sample so I can try to replicate the problem. >>
>
On Mon May 16 15:07:04 2011, hbar137s@gmail.com wrote: Show quoted text
> Hi Gray. Sorry about my initial email. This is my first time to report > a bug or a problem I am having. I have attached my source code. I will > be happy if you can have a look. It takes read entries in Google > Reader and posts them to Evernote as an email and then stars that > entry. In the mean time, I will see what I can do with the debug mode. > Thank you for your kind help!
Before you try debug mode, check the error message: - $reader->star_entry($entry) or print 'fail starring '.$url," \n"; + $reader->star_entry($entry) or printf "fail starring %s - %s\n", $url, $reader->error;
Subject: Re: [rt.cpan.org #68245] starring entries fails
Date: Mon, 16 May 2011 15:18:23 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
What I don't understand is that it seems to be independent of the entry content. I run my script and after few entries it fails. I restart the script from the entry it failed and it works then fails at some other entry. As you notice I had put in a long wait (300s) in my script because there is a limit on the number of email posts I can make in Evernote. I am wondering if there is a timeout issue. On Mon, May 16, 2011 at 2:30 PM, gray via RT <bug-WebService-Google-Reader@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68245 > > > On Mon May 16 15:07:04 2011, hbar137s@gmail.com wrote:
>> Hi Gray. Sorry about my initial email. This is my first time to report >> a bug or a problem I am having. I have attached my source code. I will >> be happy if you can have a look. It takes read entries in Google >> Reader and posts them to Evernote as an email and then stars that >> entry. In the mean time, I will see what I can do with the debug mode. >> Thank you for your kind help!
> > Before you try debug mode, check the error message: > -    $reader->star_entry($entry) or print 'fail starring '.$url," \n"; > +    $reader->star_entry($entry) or printf "fail starring %s - %s\n", $url, $reader->error; > >
Subject: Re: [rt.cpan.org #68245] starring entries fails
Date: Mon, 16 May 2011 15:31:43 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
I don't seem to get an error with 10s wait between entries... On Mon, May 16, 2011 at 3:18 PM, S R <hbar137s@gmail.com> wrote: Show quoted text
> What I don't understand is that it seems to be independent of the > entry content. I run my script and after few entries it fails. I > restart the script from the entry it failed and it works then fails at > some other entry. As you notice I had put in a long wait (300s) in my > script because there is a limit on the number of email posts I can > make in Evernote. I am wondering if there is a timeout issue. > > On Mon, May 16, 2011 at 2:30 PM, gray via RT > <bug-WebService-Google-Reader@rt.cpan.org> wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=68245 > >> >> On Mon May 16 15:07:04 2011, hbar137s@gmail.com wrote:
>>> Hi Gray. Sorry about my initial email. This is my first time to report >>> a bug or a problem I am having. I have attached my source code. I will >>> be happy if you can have a look. It takes read entries in Google >>> Reader and posts them to Evernote as an email and then stars that >>> entry. In the mean time, I will see what I can do with the debug mode. >>> Thank you for your kind help!
>> >> Before you try debug mode, check the error message: >> -    $reader->star_entry($entry) or print 'fail starring '.$url," \n"; >> +    $reader->star_entry($entry) or printf "fail starring %s - %s\n", $url, $reader->error; >> >>
>
On Mon May 16 18:32:15 2011, hbar137s@gmail.com wrote: Show quoted text
> I don't seem to get an error with 10s wait between entries...
If you look at your debug output, you can see the message 'Stale T token- retrying'. It looks like your token is being (prematurely?) invalidated. According to google: "A ClientLogin token can last for 2 weeks from the issue date, but this limit is service-specific and can be shorter." You said that it fails after about 10 entries, so that's 10 * 300 seconds ~ 1 hour? That might be the expiration cutoff for the auth token. I'm running a test case now and will check back on it in an hour.
On Mon May 16 19:16:23 2011, GRAY wrote: Show quoted text
> On Mon May 16 18:32:15 2011, wrote:
> > I don't seem to get an error with 10s wait between entries...
> > If you look at your debug output, you can see the message 'Stale T > token- retrying'. It looks like > your token is being (prematurely?) invalidated. According to google: > "A ClientLogin token can > last for 2 weeks from the issue date, but this limit is service- > specific and can be shorter." You > said that it fails after about 10 entries, so that's 10 * 300 seconds > ~ 1 hour? That might be the > expiration cutoff for the auth token. I'm running a test case now and > will check back on it in an > hour.
Okay, I am now seeing the same behavior. It looks like the retry logic might not be working quite right. I'll try to dig into this in the next couple of days.
Subject: Re: [rt.cpan.org #68245] starring entries fails
Date: Mon, 16 May 2011 17:38:34 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
Thank you so much. I really appreciate the ease and usability of your work! On Mon, May 16, 2011 at 5:36 PM, gray via RT <bug-WebService-Google-Reader@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68245 > > > On Mon May 16 19:16:23 2011, GRAY wrote:
>> On Mon May 16 18:32:15 2011,  wrote:
>> > I don't seem to get an error with 10s wait between entries...
>> >> If you look at your debug output, you can see the message 'Stale T >> token- retrying'. It looks like >> your token is being (prematurely?) invalidated. According to google: >> "A ClientLogin token can >> last for 2 weeks from the issue date, but this limit is service- >> specific and can be shorter." You >> said that it fails after about 10 entries, so that's 10 * 300 seconds >> ~ 1 hour? That might be the >> expiration cutoff for the auth token. I'm running a test case now and >> will check back on it in an >> hour.
> > Okay, I am now seeing the same behavior. It looks like the retry logic might not be working > quite right. I'll try to dig into this in the next couple of days. > > >
fixed in 0.019
Subject: Re: [rt.cpan.org #68245] starring entries fails
Date: Wed, 18 May 2011 15:35:02 -0700
To: bug-WebService-Google-Reader [...] rt.cpan.org
From: S R <hbar137s [...] gmail.com>
Confirmed. Thank you! On Tue, May 17, 2011 at 7:58 PM, gray via RT <bug-WebService-Google-Reader@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68245 > > > fixed in 0.019 >