Error when inserting new citation first-time after suspend [Report ID: 1087098556]
Context: Zotero browser plugin, Google Docs
First time inserting a new citation in a Docs document after, say, suspend always gives an error: "The Google account you selected does not have permission to edit this document. Please try again, and be sure to choose the account with editing access." Simply closing the dialog and trying once more solves the problem.
A look at the JS log reveals: The message is misleading, as the real cause is that the ServiceWorker is not running:
[JavaScript Error: "Error: Service worker (re)started at 2024-06-21 08:50:57
at Object.initGlobal (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero.js:182:20)"]
So the suggestion is to restart a suspended ServiceWorker before triggering an error.
First time inserting a new citation in a Docs document after, say, suspend always gives an error: "The Google account you selected does not have permission to edit this document. Please try again, and be sure to choose the account with editing access." Simply closing the dialog and trying once more solves the problem.
A look at the JS log reveals: The message is misleading, as the real cause is that the ServiceWorker is not running:
[JavaScript Error: "Error: Service worker (re)started at 2024-06-21 08:50:57
at Object.initGlobal (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/zotero.js:182:20)"]
So the suggestion is to restart a suspended ServiceWorker before triggering an error.
"Does it only occur if the first action after resume is trying to use the Zotero plugin?": Not sure if I understand the question right. I can do other stuff first, such as editing the document, writing text etc., then, upon "Insert citation": Error.
"Does it happen if you first e.g. switch to a different tab and then switch back to the Google Docs tab?": Yes, I can switch tabs forth and back without any difference.
I can also add the following: Say I just returned from suspend and want to paste some text containing citations. Then upon paste, I'll get the same error, and the citations will become unlinked. If I then paste the same text again, the citations will work out just fine.
This points to the connector plugin, doesn't it?