Google Documents/Chrome Zotero Crash
I am working in a Google Document with Zotero, so far without problems. Suddenly when adding a citation or updating the bibliography, I get a simple update error (no reference to a specific item, just a link to trouble shooting). An {Updating} token remains. The next time I try it, I get a message that another user is accessing it. When I unblock it, Chrome can't sync the document for quite a while. After 10 minutes it works again, but then the errors persist.
The document is very important and sensitive, so don't want to share it here. I have split my long document in shorter fractions and then the processor succeeds but I have not been able to identify one or many faulty items/citations.
It's super time critical unfortunately, I would really appreciate help @dstillman @adamsmith @adomasven
This is my Debug ID: D966142259, including:
(3)(+0000001): GDocs: Updating doc. Batch 32, numItems: 95
(3)(+0000002): HTTP POST https://script.googleapis.com/v1/scripts/AKfycbzsRgL-HtcYSNr8gyl_ZqwspwtPa1-45mXXkWntWzTwJ14nxrtN0K1KmaTDzhzxpdsUKg:run
(3)(+0008730): Connector_Browser: onActivated for https://docs.google.com/document/d/[...]/edit
(3)(+0001175): Connector_Browser: onActivated for chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/preferences/preferences.html#advanced
(3)(+0000000): HTTP POST http://127.0.0.1:23119/connector/ping
(3)(+0000008): Connector: Method ping succeeded
(3)(+0036452): Exception in Document.setDocumentData
(1)(+0000001): {
"name": "Error"
}
and:
(3)(+0005045): Exception in Document.getDocumentData
(1)(+0000001): {
"name": "Error"
"type": "Google Docs ScriptError"
}
Z client err log shows (e.g.):
[JavaScript Warning: "unreachable code after return statement" {file: "resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js" line: 205 column: 4 source: " eval(obj);
"}]
[JavaScript Error: "Style with ID http://www. already loaded from chicago-manual-of-style-16th-edition-note+year-punkt.csl" {file: "chrome://zotero/content/xpcom/style.js" line: 182}]
Zotero.Styles</_readStylesFromDirectory<@chrome://zotero/content/xpcom/style.js:182:15
tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16
module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:97:18
module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:609:17
module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:649:5
module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:729:13
_drainQueueStep@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:93:9
_drainQueue@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:86:9
Async.prototype._drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:102:5
Async/this.drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:15:9
[JavaScript Error: "HTTP Integration Error" {file: "chrome://zotero/content/xpcom/connector/server_connectorIntegration.js" line: 67}]
The document is very important and sensitive, so don't want to share it here. I have split my long document in shorter fractions and then the processor succeeds but I have not been able to identify one or many faulty items/citations.
It's super time critical unfortunately, I would really appreciate help @dstillman @adamsmith @adomasven
This is my Debug ID: D966142259, including:
(3)(+0000001): GDocs: Updating doc. Batch 32, numItems: 95
(3)(+0000002): HTTP POST https://script.googleapis.com/v1/scripts/AKfycbzsRgL-HtcYSNr8gyl_ZqwspwtPa1-45mXXkWntWzTwJ14nxrtN0K1KmaTDzhzxpdsUKg:run
(3)(+0008730): Connector_Browser: onActivated for https://docs.google.com/document/d/[...]/edit
(3)(+0001175): Connector_Browser: onActivated for chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/preferences/preferences.html#advanced
(3)(+0000000): HTTP POST http://127.0.0.1:23119/connector/ping
(3)(+0000008): Connector: Method ping succeeded
(3)(+0036452): Exception in Document.setDocumentData
(1)(+0000001): {
"name": "Error"
}
and:
(3)(+0005045): Exception in Document.getDocumentData
(1)(+0000001): {
"name": "Error"
"type": "Google Docs ScriptError"
}
Z client err log shows (e.g.):
[JavaScript Warning: "unreachable code after return statement" {file: "resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js" line: 205 column: 4 source: " eval(obj);
"}]
[JavaScript Error: "Style with ID http://www. already loaded from chicago-manual-of-style-16th-edition-note+year-punkt.csl" {file: "chrome://zotero/content/xpcom/style.js" line: 182}]
Zotero.Styles</_readStylesFromDirectory<@chrome://zotero/content/xpcom/style.js:182:15
tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16
module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:97:18
module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:609:17
module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:649:5
module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:729:13
_drainQueueStep@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:93:9
_drainQueue@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:86:9
Async.prototype._drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:102:5
Async/this.drainQueues@resource://zotero/loader.jsm -> resource://zotero/bluebird/async.js:15:9
[JavaScript Error: "HTTP Integration Error" {file: "chrome://zotero/content/xpcom/connector/server_connectorIntegration.js" line: 67}]
EDIT: I have checked our logs and indeed it seems like Google servers are experiencing an increased rate of what seems to be generic issues where their script runner (responsible for updating the docs for Zotero) is unable to access/load documents.
@adamsmith: changing style prompts the same "multiple users" warning and then fails again. Btw, I thought I was using the regular CMOS17 (author-date).
If I copy and paste the document content to a new document (instead of cloning), I first run into a sync error Google-sided and then, after a while, refresh won't work as all citations are unlinked.
Against this hypothesis is that revoking Zotero permissions on top Google level is not helping. Reinstalling the Chrome Z Connector did not help either
Zotero calls the Google Docs script a few times for a single command and what seems to happen is that one of those fails randomly, making the document "locked", since the lock flag is never unset. I imagine Google routes those requests via different servers every time and some of them are having issues.
Is there any manual way to tweak with this? In MS Word I know where these flags are nested but no clue for GDocs
Technically you could try switching to the Google Docs integration V2 in Zotero Connector -> Advanced -> Config Editor by enabling the
integration.googleDocs.useGoogleDocsAPI
flag, but it might not work either. We've developed this as a massive improvement to the Google Docs plugin performance nearly 2 years ago, but due to a bug that Google is refusing to address it doesn't work in many documents.It's a pity to so much rely on other products, but there's no way out.
II will continue to deal with this later tonight. I will keep you posted about any breakthrough but will not log every step here to not waste (too much of) your time.
And, yes, V2, e.g., does not correctly adjust citation fields to the font style and size of the paragraph it is embedded in (though it seems to work fine in tables in this respect). This did not occur with V1.
A Google problem after all! Thanks for the support!