View Single Post
Old 07-04-2010, 10:00 AM   #2247
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Google Changed Authentication for Google Reader

In another thread many folk have mentioned that their Google Reader recipe has stopped working. The error they experience is HTTPError: HTTP Error 401: Unauthorized.

Spoiler:
Code:
ERROR: Conversion Error: <b>Failed</b>: Fetch news from Google Reader

Fetch news from Google Reader
Resolved conversion options
calibre version: 0.7.7
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 16.0,
 'book_producer': None,
 'change_justification': 'original',
 'chapter': None,
 'chapter_mark': 'pagebreak',
 'comments': None,
 'cover': None,
 'debug_pipeline': None,
 'disable_font_rescaling': False,
 'dont_download_recipe': False,
 'dont_split_on_page_breaks': True,
 'extra_css': None,
 'extract_to': None,
 'flow_size': 260,
 'font_size_mapping': None,
 'footer_regex': '(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'header_regex': '(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x03D10590>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0,
 'linearize_tables': False,
 'lrf': False,
 'margin_bottom': 5.0,
 'margin_left': 5.0,
 'margin_right': 5.0,
 'margin_top': 5.0,
 'max_toc_links': 50,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.SonyReader300Output object at 0x03D10930>,
 'page_breaks_before': None,
 'password': '**********',
 'prefer_metadata_cover': False,
 'preprocess_html': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': None,
 'remove_first_image': False,
 'remove_footer': False,
 'remove_header': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'series': None,
 'series_index': None,
 'tags': None,
 'test': False,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'use_auto_toc': False,
 'username': '****.*******',
 'verbose': 2}
InputFormatPlugin: Recipe Input running
Python function terminated unexpectedly
   (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 99, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 815, in run
  File "site-packages\calibre\customize\conversion.py", line 211, in __call__
  File "site-packages\calibre\web\feeds\input.py", line 104, in convert
  File "site-packages\calibre\web\feeds\news.py", line 705, in download
  File "site-packages\calibre\web\feeds\news.py", line 835, in build_index
  File "site-packages\calibre\web\feeds\news.py", line 1280, in parse_feeds
  File "c:\docume~1\dell\locals~1\temp\calibre_0.7.7_adbecz_recipes\recipe0.py", line 35, in get_feeds
    soup = self.index_to_soup('http://www.google.com/reader/api/0/tag/list')
  File "site-packages\calibre\web\feeds\news.py", line 474, in index_to_soup
  File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_opener.py", line 202, in open
  File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_http.py", line 612, in http_response
  File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_opener.py", line 225, in error
  File "urllib2.py", line 367, in _call_chain
  File "site-packages\mechanize-0.1.11-py2.6.egg\mechanize\_http.py", line 633, in http_error_default
urllib2.HTTPError: HTTP Error 401: Unauthorized

Below is a snippet of conversation from the other thread. I think I may have pointed to the reason for the error but unfortunately I lack the knowledge/experience needed to help these folks.

Quote:
Originally Posted by dwanthny View Post
Quote:
Originally Posted by depend View Post
I start getting the same error too. It was good on 6/20. I don't remember exactly which version I was using since there have been quite a few new versions published.
Version does not matter since the recipe never changed. Apparently something in Google Reader changed and the recipe needs to be fixed to match.

This post entitled "Changes to sending authenticated requests to Google Reader" on the Google Reader Blog might hold the key but I don't have the skill set needed to correct the problem.
Quote:
Originally Posted by Starson17 View Post
Looking at the code in the first post of this thread convinces me that your link does hold the key. The current recipe finds and uses the SID cookie. Google stopped using SID cookie authentication and now wants an AUTH header. I'd ask for help in the dedicated recipe thread and make sure you include the link above. I don't use GoogleReader and I've only played around with adding headers and mechanize once.
I Hope someone here might be able to work out this piece of the puzzle and get this recipe working again.
DoctorOhh is offline