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.

  • Service worker restarting is not related to this error. Can you reproduce this if you disable Google Docs Offline and Paperpile Extensions? Does it only occur if the first action after resume is trying to use the Zotero plugin? Does it happen if you first e.g. switch to a different tab and then switch back to the Google Docs tab?
  • "Can you reproduce this if you disable Google Docs Offline and Paperpile Extensions?": Yes, I disabled all other extensions except the Zotero plugin, and it still occurs.

    "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.
  • Does it matter how long your computer is suspended for, or even suspending it for a few seconds make this happen? Could you produce a Debug ID for the failed docs interaction from Zotero Connector? Enable Debug Logging before putting your computer to sleep, and then after Resume reproduce the Google Docs issue and submit the log.
  • Nice suggestion! Interestingly, a short suspend did not trigger the error, so it must be something else. I managed to produce a debug log when the error occurred, #D279973971.
  • Another debug log: D1643895923
  • Also, say I have 2 documents i 2 different tabs, try to insert a new citation in tab1, get the error, then switch to tab2, try to insert once more: no error.
    This points to the connector plugin, doesn't it?
  • We believe we've identified the issue and submitted Zotero Connector 5.0.136 with a fix. It should be available within the next day, once Google approves it.
  • @untill: 5.0.136 is out now. Thanks for reporting.
Sign In or Register to comment.