gReader just doesn't work

Bug #592313 reported by Josh Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Code Monkey
Confirmed
Medium
Unassigned

Bug Description

The 'gReader.sh' script fails at getting '$unreadxml'.

Revision history for this message
Josh Brown (joshbrown) wrote :

We already have 'check-gmail.sh', perhaps this script should simply be deleted.

Changed in codemonkey:
importance: Undecided → Medium
Revision history for this message
Tom Swartz (tom-swartz07) wrote :

I don't see any problem from my end?

tom@tardis:~/Documents/Codemonkey Bzr/codemonkey$ ./gReader.sh tom.swartz07 PASSWORD
Unread Feeds: 4

This script gets the number of unread feeds from Google Reader, whereas check-gmail.sh gets the number of unread email messages.

Ill run some troubleshooting on it to see whats up

Changed in codemonkey:
status: New → Triaged
Revision history for this message
Josh Brown (joshbrown) wrote :

Perhaps some of the code from 'check-gmail.sh 'could be used, as the two scripts have a lot in common.

Revision history for this message
Tom Swartz (tom-swartz07) wrote :

Do you have any information involved with Google Reader?

I tried this with a test account that doesnt have any Google reader feeds and it returned a similar error to what you have given.

Revision history for this message
Josh Brown (joshbrown) wrote :

Tom, no I don't have any feeds. But I've done some debugging and it seems 'unreadcount' and 'unreadcountxml' variables are both empty for me - so I made some changes to the code (patch attached), and I now get:
 Unread Feeds: 0

summary: - gReader outputs error and always outputs '0'
+ gReader raises error and always outputs '0'
Revision history for this message
Tom Swartz (tom-swartz07) wrote : Re: gReader raises error and always outputs '0'

Excellent. Ill be sure to include this patch with the next set of updates that I push.

Changed in codemonkey:
status: Triaged → Fix Released
Revision history for this message
Josh Brown (joshbrown) wrote :

Looks like you forgot to change $1 and $2 to $username and $password.

Changed in codemonkey:
status: Fix Released → Confirmed
Josh Brown (joshbrown)
summary: - gReader raises error and always outputs '0'
+ gReader just doesn't work
Revision history for this message
Josh Brown (joshbrown) wrote :

Even after changing $1 and $2 to $username and $password, the script still doesn't work.

description: updated
Revision history for this message
Tom Swartz (tom-swartz07) wrote :

I still cannot reproduce the problem that you are experiencing.
The only reason that I could come up with is related to comment #5, you dont have any Google feeds that are available to be parsed, and its possible that the error is coming in when you hard code a result for the $unread xml

$1 and $2 allow for the person to include the username and password at runtime, while still allowing the hard-coding of the credentials in the program.

Ill take one more look after dinner tonight and see if I could dig some more up

Revision history for this message
Josh Brown (joshbrown) wrote :

I don't know a lot about feeds, but it seems I have over 1000?

Revision history for this message
Tom Swartz (tom-swartz07) wrote :

Oh wow. You definitely have unread feeds. haha

From the looks of it, you have at the very least 7,000 unread feeds items.

Just a quick overview of how it works. Blogs and websites that update on a periodic basis use a method called RSS, or Really Simply Syndication. This allows people to use applications similar to Google Reader to only view the new content that is published since they last saw it.

The ultimate goal of this script is to interface with Google Reader's APIs and allow a client to view the number of unread feed items that they have waiting.

Now that I see this, it could be entirely possible that the number is simply too great for the current script to handle and thus it is throwing the error?

At least now I have some idea of where to look! :D

Revision history for this message
Josh Brown (joshbrown) wrote :

I'll attach the code I'm using to debug the problem and the output of that code - I seem to be getting a '401 Unauthorized' error.

Revision history for this message
Josh Brown (joshbrown) wrote :
Revision history for this message
Josh Brown (joshbrown) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.