Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error sending references to JabRef from Google Scholar and from Internet Archive Scholar #546

Open
alanboyd opened this issue Feb 22, 2023 · 1 comment

Comments

@alanboyd
Copy link

The browser extension is failing to import references from scholar.google.co.uk, and in particular circumstances from https://scholar.archive.org/

This happens with both Firefox and Chrome. I am using JabRef 5.9--2023-01-08--76253f1a7
Windows 10 10.0 amd64
Java 19.0.1
JavaFX 19+11

With Google Scholar I get the pop up message "searching for bibliographic data ...", but nothing more happens. Pressing the Escape key and trying again does not make any difference.

With Internet Archive Scholar, if I display a list of references using the search box and click on the extension icon I also get the pop up message "searching for bibliographic data ...", but nothing more happens. If I then press the Escape key and try again, then everything works fine, and if I then do another search everything works fine. I can even close the browser and search again and everything works fine. The problem only seems to occur on the very initial search. (Chrome does display an error message "Error when communicating with the native messaging host" in a new tab every time, but the import still works).

The error message from the Firefox console when trying to capture a reference from Google Scholar is below

I hope you can help

Alan Boyd

Browser Console Mode
Parent process only(Fast)
Multiprocess(Slower)
NotFoundError: No such JSWindowActor 'DevToolsFrame' 8
JabRef: Popup opened confirmed background.js:180:17
JabRef: Start translation for tab
Object { id: 1, index: 0, windowId: 1, highlighted: true, active: true, attention: false, pinned: false, status: "complete", hidden: false, discarded: false, … }
background.js:198:29
Messaging: Received message: Debug.log, translate message received in injected page https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5, messaging.js:51:11
(3)(+0069075): translate message received in injected page https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5
debug.js:87:11
Array(6) [ "translate message received in injected page https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Messaging.sendMessage, progressWindow.show,36HKmTRK,,false,100 messaging.js:51:11
JabRef: other message in background.js:
Array [ "Messaging.sendMessage", (4) […] ]
background.js:232:17
Messaging: Received message: Debug.log, Translate: Binding sandbox to https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5,4 messaging.js:51:11
(4)(+0000003): Translate: Binding sandbox to https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5
debug.js:87:11
Array(6) [ "Translate: Binding sandbox to https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5", 4, undefined, undefined, {…}, 0 ]
background.js:226:17
JabRef: eval in background.js: (function() {var Zotero = GlobalSandbox.Zotero;Zotero.Item = function (itemType) {var createArrays = ['creators', 'notes', 'tags', 'seeAlso', 'attachments'];this.itemType = itemType;for(var i=0, n=createArrays.length; i<n; i++) {this[createArrays[i]] = [];}};Zotero.Item.prototype.complete = function() { return Zotero._itemDone(this); }})(); background.js:212:17
Messaging: Received message: Translators.getCodeForTranslator, [object Object] messaging.js:51:11
JabRef: other message in background.js:
Array [ "Translators.getCodeForTranslator", (1) […] ]
background.js:232:17
JabRef: code executed with result background.js:127:17
Messaging: Received message: Debug.log, Translate: Parsing code for Google Scholar (57a00950-f0d1-4b41-b6ba-44ff0fc30289, 2022-02-25 01:25:00),4 messaging.js:51:11
(4)(+0000008): Translate: Parsing code for Google Scholar (57a00950-f0d1-4b41-b6ba-44ff0fc30289, 2022-02-25 01:25:00)
debug.js:87:11
Array(6) [ "Translate: Parsing code for Google Scholar (57a00950-f0d1-4b41-b6ba-44ff0fc30289, 2022-02-25 01:25:00)", 4, undefined, undefined, {…}, 0 ]
background.js:226:17
JabRef: eval in background.js:
(function() {var requestDocument = GlobalSandbox.requestDocument;var requestJSON = GlobalSandbox.requestJSON;var requestText = GlobalSandbox.requestText;var request = GlobalSandbox.request;var innerText = GlobalSandbox.innerText;var text = GlobalSandbox.text;var attr = GlobalSandbox.attr;var ZU = GlobalSandbox.ZU;var Z = GlobalSandbox.Z;var Zotero = GlobalSandbox.Zotero;var exports = {}, ZOTERO_TRANSLATOR_INFO = {
"translatorID": "57a00950-f0d1-4b41-b6ba-44ff0fc30289",
"label": "Google Scholar",
"creator": "Simon Kornblith, Frank Bennett, Aurimas Vinckevicius",
"target": "^https?://scholar[-.]google-.(\.[^/]+)?/(scholar(_case)?\?|citations\?)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2022-02-25 01:25:00"
}

/*
***** BEGIN LICENSE BLOCK *****

Copyright © 2022 Simon Kornblith, Frank Bennett, Aurimas Vinckevicius

This file is part of Zote…

background.js:212:17
JabRef: code executed with result background.js:127:17
Messaging: Received message: Debug.log, Translate: Beginning translation with Google Scholar, messaging.js:51:11
(3)(+0000023): Translate: Beginning translation with Google Scholar
debug.js:87:11
Array(6) [ "Translate: Beginning translation with Google Scholar", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Debug.log, Translate: Running handler 0 for select,5 messaging.js:51:11
(5)(+0000002): Translate: Running handler 0 for select
debug.js:87:11
Array(6) [ "Translate: Running handler 0 for select", 5, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Messaging.sendMessage, progressWindow.close, messaging.js:51:11
JabRef: other message in background.js:
Array [ "Messaging.sendMessage", (4) […] ]
background.js:232:17
Messaging: Received message: Debug.log, Translate: resolving URL /scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1, messaging.js:51:11
(3)(+0000003): Translate: resolving URL /scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1
debug.js:87:11
Array(6) [ "Translate: resolving URL /scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Debug.log, Translate: resolved to https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1, messaging.js:51:11
(3)(+0000002): Translate: resolved to https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1
debug.js:87:11
Array(6) [ "Translate: resolved to https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Debug.log, Zotero.HTTP.doGet is deprecated. Use Zotero.HTTP.request, messaging.js:51:11
(3)(+0000002): Zotero.HTTP.doGet is deprecated. Use Zotero.HTTP.request
debug.js:87:11
Array(6) [ "Zotero.HTTP.doGet is deprecated. Use Zotero.HTTP.request", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Debug.log, Using content XHR, messaging.js:51:11
(3)(+0000001): Using content XHR
debug.js:87:11
Array(6) [ "Using content XHR", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Debug.log, HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1, messaging.js:51:11
(3)(+0000001): HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1
debug.js:87:11
Array(6) [ "HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1", undefined, undefined, undefined, {…}, 0 ]
background.js:226:17
HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404 zotero.js:379:12
uncaught exception: Object
uncaught exception: HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404
Messaging: Received message: Errors.log, HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404,, messaging.js:51:11
Array(5) [ "HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404", null, null, {…}, 0 ]
background.js:228:17
Messaging: Received message: Debug.log, Translate: Translation using Google Scholar failed:
HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404
url => https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5
downloadAssociatedFiles => true
automaticSnapshots => true,2 messaging.js:51:11
(2)(+0000606): Translate: Translation using Google Scholar failed:
HTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404
url => https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5
downloadAssociatedFiles => true
automaticSnapshots => true
debug.js:87:11
Array(6) [ "Translate: Translation using Google Scholar failed: \nHTTP GET https://scholar.google.com/scholar?q=info:SP6oXDckpogC:scholar.google.com/&output=cite&scirp=1 failed with status code 404\nurl => https://scholar.google.com/scholar?scilib=1026&hl=en&as_sdt=0,5\ndownloadAssociatedFiles => true\nautomaticSnapshots => true", 2, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Debug.log, Translate: Running handler 0 for error,5 messaging.js:51:11
(5)(+0000002): Translate: Running handler 0 for error
debug.js:87:11
Array(6) [ "Translate: Running handler 0 for error", 5, undefined, undefined, {…}, 0 ]
background.js:226:17
Messaging: Received message: Messaging.sendMessage, progressWindow.done,false messaging.js:51:11
JabRef: other message in background.js:
Array [ "Messaging.sendMessage", (4) […] ]
background.js:232:17

@egen97
Copy link

egen97 commented May 22, 2024

I get the same issue (searching for bibliographic data ...", but nothing more happens.) when attempting to import from cambridge core, see this for an example https://www.cambridge.org/core/journals/american-political-science-review/article/for-example-how-to-use-examples-in-political-science/A9AC7926E398DFF9FCE65C5C8419D782?utm_campaign=shareaholic&utm_medium=copy_link&utm_source=bookmark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants