How to Fix Google Docs ‘Trying to Connect’ Reconnecting Error

Working on documents in Google Docs can suddenly be halted by a top banner notification: Trying to connect. To edit offline, turn on offline sync…. While this banner is active, editing locks up, freshly typed characters disappear or fail to commit, and cloud changes stop synchronising. Even when your computer retains active internet access and opens standard web pages without issue, Google Docs remains stuck attempting to re-establish its real-time document channel.

Resolving this connection deadlock requires restoring WebSocket connectivity, clearing stale Google Docs offline IndexedDB caches, and configuring browser security extensions.

Why Does Google Docs Get Stuck ‘Trying to Connect’?

Google Docs relies on real-time operational transformation engines communicating over secure persistent WebSockets (WSS). The banner triggers when:

  • Blocked Persistent WebSockets: Corporate proxies, VPN configurations, or network firewalls terminate continuous streaming HTTP/2 or WebSocket connections.
  • Corrupted Google Docs Offline Extension State: The official Google Docs Offline Chrome extension holds a stale document transaction ledger in IndexedDB that conflicts with the cloud head state.
  • Multiple Google Account Session Collisions: Switching between personal and workspace accounts in the same browser window causes OAuth token expiry desynchronisation.
  • Browser Privacy Extension Interference: Content blockers intercept heartbeat keep-alive requests directed toward docs.google.com endpoints.
  • Aggressive Antivirus Web Filtering: Local security suites inspecting encrypted traffic introduce latency spikes that exceed Google Docs timeout ceilings.

Step 1: Test Connectivity in an Incognito Window

Isolating the session from browser extensions identifies whether local add-ons are breaking communication:

  1. Press Ctrl + Shift + N in Google Chrome (or Command + Shift + N on macOS) to open an Incognito window.
  2. Navigate to https://docs.google.com and sign in to your Google account.
  3. Open the problematic document.
  4. If the Trying to connect message disappears and edits save immediately, proceed to Step 2 to clear extension interference.
  5. If the error persists in Incognito mode, the blockage stems from network routing or firewall configurations (proceed to Step 4).

Step 2: Reset Google Docs Offline Storage and IndexedDB

Flushing local client staging records removes corrupted offline document queues:

  1. Open the affected document in Google Chrome.
  2. Press F12 or right-click anywhere on the page and select Inspect to launch Developer Tools.
  3. Click on the Application tab at the top toolbar (click the double-arrow >> icon if hidden).
  4. In the left sidebar, expand the Storage section.
  5. Click IndexedDB, right-click the database associated with Google Docs, and select Delete database.
  6. Click on Service Workers in the left pane, locate any workers registered for https://docs.google.com, and click Unregister.
  7. Refresh the page (press Ctrl + F5 or Command + Shift + R) to rebuild a fresh client cache.

Step 3: Toggle the Google Docs Offline Feature

Re-initialising offline permissions resets background document synchronization threads:

  1. Navigate to the main Google Docs home screen: https://docs.google.com/document/u/0/.
  2. Click the hamburger menu icon (three horizontal lines) in the upper-left corner and select Settings.
  3. Locate the Offline toggle: Sync Google Docs, Sheets, Slides & Drawings files to this computer so that you can edit offline.
  4. Toggle the switch to Off and click OK.
  5. Wait thirty seconds, return to Settings, and toggle Offline back to On.

Step 4: Disable Conflicting Ad-Blockers and VPN Extensions

Network filters often intercept the persistent heartbeat ping required by Google real-time editors:

  1. Type chrome://extensions/ into your browser address bar and press Enter.
  2. Locate third-party ad-blockers (e.g. uBlock Origin, AdGuard), script blockers, or VPN extensions.
  3. Toggle them off temporarily and reload Google Docs.
  4. If connection restores, add [*.]google.com to your ad-blocker’s allowlist / whitelist.

Step 5: Flush DNS and Reset Local Network Stack

Stale DNS routing tables prevent browser socket pools from maintaining continuous connections:

  1. On Windows:
    1. Open Command Prompt as Administrator.
    2. Execute: ipconfig /flushdns and netsh winsock reset.
    3. Restart your PC.
  2. On macOS:
    1. Open Terminal.
    2. Execute: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
    3. Press Return and enter your admin password.
  3. Open Google Docs to confirm uninterrupted real-time editing.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.