Google Docs Citation Insertion Fails on macOS — TypeError in ClientV2



Hello Zotero Support Team,

I'm experiencing a persistent issue when trying to insert citations into Google Docs using Zotero. The error has occurred since my first attempt to use **Zotero → Add/Edit Citation**. I have followed several troubleshooting steps, but the issue remains unresolved.

## System Information

- **Operating System:** macOS 26.5.2
- **Zotero Desktop:** 10.0.6 (ARM64)
- **Browser:** Google Chrome
- **Zotero Connector:** 5.0.217
- **Document Editor:** Google Docs

## Error Messages

When attempting to insert a citation, Zotero displays:

> Zotero experienced an error updating your document.

The Zotero Connector's Report Errors panel also displays the following JavaScript error:

```text
TypeError: Cannot read properties of undefined (reading 'content')
at new Document
at Zotero.GoogleDocs.ClientV2.Zotero.GoogleDocs.Client.getGoogleDocs...
(google-docs-integration/client.js:118:15)
```

Additionally, I received the following Connector message:

> The Zotero Connector was unable to communicate with the Zotero desktop application. Zotero must be open to use web-based citing.

## Troubleshooting Performed

1. Restarted Zotero with Debug Output Logging enabled and submitted debug reports.
2. Checked the Zotero Connector version and confirmed that it is version 5.0.217.
3. Reloaded the Google Docs tab and retried **Zotero → Add/Edit Citation**.
4. Tested the local Zotero Connector endpoint at `http://127.0.0.1:23119/connector/ping`. It returned `Zotero is running`, even though citation insertion continued to fail.
5. Inspected the Connector's Report Errors panel and found a JavaScript error associated with the Google Docs ClientV2 integration.

The issue persists after these steps. I have not deleted or modified the existing citations or the original document.

## Diagnostic IDs

- **Zotero Desktop Debug ID (latest):** `D774105308`
- **Zotero Desktop Debug ID (previous):** `D727077289`
- **Zotero Connector Debug ID:** `D896722263`
- **Zotero Connector Debug ID (previous):** `D1876294311`
- **Zotero Connector Report ID:** `714540798`

## Request for Assistance

Could you please investigate why the Google Docs ClientV2 integration throws a `TypeError` when attempting to create or access the document object?

I would also appreciate guidance on why the Connector sometimes reports that it cannot communicate with Zotero Desktop even though the local ping endpoint returns `Zotero is running`.

Please let me know if you need additional diagnostic information or specific steps to reproduce the issue.

Thank you for your assistance.
Sign In or Register to comment.