Optical Society of America translator not working
"An error occurred saving with Optical Society of America. Attempting to save using Embedded Metadata instead."
I haven't seen it work on any articles at the moment. Here is an example of one (that is open access):
https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-20-35467&id=502123
(note that the organization has renamed itself "Optica")
My version of Zotero is: 6.0.18
I can reproduce the issue in Microsoft Edge (v 107.0.1418.52), Chrome (v 107.0.5304.107), and Firefox (v 107.0).
I get the following error (reported in the Zotero connector extension):
[JavaScript Error: "TypeError: Cannot read properties of null (reading 'documentElement')
at scrape (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:63:4), :106:18)
at async doWeb (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:63:4), :88:3)" {file: "[object Object]"}]
And here the debug log (from Chrome):
The Debug ID is D456402627
I haven't seen it work on any articles at the moment. Here is an example of one (that is open access):
https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-20-35467&id=502123
(note that the organization has renamed itself "Optica")
My version of Zotero is: 6.0.18
I can reproduce the issue in Microsoft Edge (v 107.0.1418.52), Chrome (v 107.0.5304.107), and Firefox (v 107.0).
I get the following error (reported in the Zotero connector extension):
[JavaScript Error: "TypeError: Cannot read properties of null (reading 'documentElement')
at scrape (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:63:4), :106:18)
at async doWeb (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/translate_inject.js:63:4), :88:3)" {file: "[object Object]"}]
And here the debug log (from Chrome):
The Debug ID is D456402627
you've run through the other items on https://www.zotero.org/support/troubleshooting_translator_issues ?
- double checked that cookies are enabled (#11)
- uninstalled & reinstalled the connector extension (#12)
Pretty sure I checked all the others.
Could it be a firewall problem? I noticed the following early in the debug log:
(3)(+0000042): Translators: Looking for translators for http://192.168.100.1/pfblockerng/pfblockerng_alerts.php
which would be my gateway.
In the Report errors I notice:
Error: Only 0 translators present in cache. Resetting
Does this mean it can't find the translator to use, and then fails out to embedded metadata?
I further tested on a different computer, and no issues. It's on the same network as the other, so I'm inclined to discard the firewall hypothesis. The debug text between the two is very similar up to the point of failure, which is after a "Method getSelectedCollection succeeded" line (noted below).
I'd think maybe a stale cache on the browser or something (other computer is a fresh install of Win 11, Firefox, & Zotero) - except it seems odd that it affects all 3 browsers on the computer. Any ideas on things to check on the computer itself?
On a related note, it appears that both the Optical Society and Embedded metadata translators download multiple copies of the author names into the metadata (I had hoped that the Optical Society translator would not have this issue, but it appears that it does). Is this a bug (i.e. can you reproduce this, or is the problem again on my end).
*Successful on other computer:*
(3)(+0000013): Connector: Method getSelectedCollection succeeded
(3)(+0000005): progressWindowIframe.changeHeadline message received in injected page moz-extension://e0b4a38e-41d9-4467-b43c-8aa82e66ba51/progressWindow/progressWindow.html
(3)(+0000022): progressWindowIframe.resized message received in injected page https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-21-39188&id=509758
(3)(+0001469): Parsing cross-origin response for https://opg.optica.org/viewmedia.cfm?uri=oe-30-21-39188&seq=0
(3)(+0000082): Translate: PDF embed page HTML:
*Failed on original computer:*
(3)(+0000004): Connector: Method getSelectedCollection succeeded
(3)(+0000004): progressWindowIframe.changeHeadline message received in injected page chrome-extension://nmhdhpibnnopknkmonacoephklnflpho/progressWindow/progressWindow.html
(3)(+0000007): progressWindowIframe.resized message received in injected page https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-21-39188&id=509758
(3)(+0000302): progressWindowIframe.mouseenter message received in injected page https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-21-39188&id=509758
(3)(+0000046): progressWindowIframe.mouseleave message received in injected page https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-21-39188&id=509758
(3)(+0000878): Translate: PDF embed page HTML:
(2)(+0000001): Translate: Translation using Optical Society of America failed:
TypeError: Cannot read properties of null (reading 'documentElement')
TypeError: Cannot read properties of null (reading 'documentElement')
at scrape (eval at (chrome-extension://nmhdhpibnnopknkmonacoephklnflpho/inject/translate_inject.js:63:4), :106:18)
at async doWeb (eval at (chrome-extension://nmhdhpibnnopknkmonacoephklnflpho/inject/translate_inject.js:63:4), :88:3)
url => https://opg.optica.org/oe/fulltext.cfm?uri=oe-30-21-39188&id=509758
downloadAssociatedFiles => true
automaticSnapshots => true
Other sites seem to work normally on that computer? And you've tried resetting translators I take it? Can you try updating translators from the *Connector* preferences while having the debug (again in the connector) run and submitting that?
I reset translators by going to Zotero preferences > Advanced, then pressing the "Update now" button. The problem persisted.
I then went to the Edge extension options for the Zotero Connector, enabled debug output logging, then pressed "Update Translators".
The debug output ID is: D573825794
JSTOR also appears to work, though I don't have access to the pdfs, the metadata downloaded fine whether it was an individual article or via checkboxes in the folder dropdown.
I tried another one (semi-randomly; I looked at the American Institute of Physics/AIP and picked an article from one of their open access journals). It too seemed to work just fine (using a translator called 'Atypon journals" I think).
https://aip.scitation.org/doi/10.1063/5.0109265
Guess I have a bit of Murphy's Law going on - the particular catalog I want doesn't work on the particular computer I'd like it to, and everything else seems to work :/
(And I think I have a fix for this, might just take a little to get it up)
At any rate, it now works in Firefox on both computers I've tested on here (and doesn't in Edge or Chrome).
On a side note, did the author fix for the translator got pushed through already? I didn't see duplicate authors on this latest Firefox test (just tested the one article though).