Opened 10 years ago

Closed 10 years ago

#430 closed defect (fixed)

Amazon translator causing utilities.js to throw exception

Reported by: stakats Owned by: simon
Priority: major Milestone: 1.0 Beta 3
Component: ingester Version: 1.0
Keywords: Cc:

Description

I'm experiencing some JS errors coming out of utilities.js when trying to run the new Amazon translator on certain pages. For example, on this page:

http://www.amazon.com/Corrupting-cooks-expertise-eighteenth-century-Dissertation/dp/B000GKHUJS/sr=8-1/qid=1165467800/ref=sr_1_1/102-5495493-0323356?ie=UTF8&s=books

Here detectWeb generates the following console output:

zotero(3): binding sandbox to http://www.amazon.com/Corrupting-cooks-expertise-eighteenth-century-Dissertation/dp/B000GKHUJS/sr=8-1/qid=1165467800/ref=sr_1_1/102-5495493-0323356?ie=UTF8&s=books

zotero(3): searching for translators for http://www.amazon.com/Corrupting-cooks-expertise-eighteenth-century-Dissertation/dp/B000GKHUJS/sr=8-1/qid=1165467800/ref=sr_1_1/102-5495493-0323356?ie=UTF8&s=books

zotero(5): SELECT detectCode FROM translators WHERE translatorID = ?

zotero(5): Binding parameter 1 of type string: "96b9f483-c44d-5784-cdad-ce21b984fe01"

zotero(3): [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: chrome://zotero/content/xpcom/utilities.js :: anonymous :: line 276" data: no] in executing detectCode for Amazon

Change History (1)

comment:1 Changed 10 years ago by simon

  • Resolution set to fixed
  • Status changed from new to closed

(In [937]) - closes #407, error in EBSCOhost translator

  • closes #430, Amazon translator causing utilities.js to throw exception
  • officially deprecated Zotero.Utilities.getNodeString() (use doc.evaluate and nodeValue or textContent instead, or access attributes directly; these options take the nearly the same amount of code, should be faster, and don't unnecessarily bloat our utilities)
  • updated word integration to the latest version
Note: See TracTickets for help on using tickets.