While automating a ProseMirror-style rich editor with Playwright, the page kept flipping to a "server outage" message the moment we selected text or typed. The server was fine. Chrome's auto-translate was on, it rewrote the editor's text nodes, and the editor crashed on its own. If you see an error screen with no page navigation, suspect the client, not the backend, and measure before you wait.

This post covers the one-event test that separates the two cases, a three-value check for translation, and the part that surprised us: the usual opt-outs did nothing, and only editing the profile's Preferences file worked. The longer write-up, with the full recovery procedure, is in the original post.

What the "outage" actually looked like

The symptom was oddly specific: reading worked, editing died. We could read all 36 blocks of the document from the DOM. The instant we started a selection or typed, the editor was replaced by an apology screen. Our script logged this:

GATE FAIL: selection is off (selected: '\nSorry, an outage is happening right now.\nRecover') 

Our automation profile had a per-site "always translate" setting (translate_allowlists), so Chrome translated the editing page and swapped the text nodes for translated ones. The editor's document model and the real DOM no longer matched. On selection extension or typing, the position mapping threw, and the framework's error boundary replaced the screen with its failure notice.

The misdiagnosis chain

We read it as rate limiting, which is an easy story to believe. Here is the path we actually took:

Step What we concluded Why it was wrong
Observe Public page returns 200, only editing fails True, but incomplete
Diagnose "We opened 15 edit sessions too fast and got throttled" Based on circumstance only; the server rejected nothing
Treat Cool down and wait A client-side crash does not heal with time
Instrument Add framenavigated, log state per step The conclusion flipped here

Step three was the expensive one. A wrong cause means waiting and retrying, and the wrong cause also gets written into your notes. One instrumented run is cheaper than hours of cooldown.

Server outage or client crash? One event decides

The editor disappeared right after drag release while no navigation event fired, so it was a client crash

If the server or a redirect were responsible, the browser would navigate to a new page. A translation-induced crash only swaps the DOM inside the same page, so no navigation fires. Hook page.on('framenavigated') and log, per step, whether the editor element still exists:

page.on('framenavigated', f => { if (f === page.mainFrame()) navCount++; }); async function snap(label) { const editor = await page.locator('.ProseMirror').count(); console.log(label, { editor, navCount }); } 

Our run looked like this:

Step Editor present Navigation
After load yes 3 at first load
Click in body yes none
Mouse down yes none
Right after drag release no none

The last row is the verdict. The editor vanished with no navigation, which no server response can explain.

Checking whether translation is on

Chrome wraps translated text in <font> tags and adds a translated-ltr class to the document root. One evaluation covers it:

({ cls: document.documentElement.className, // contains translated-ltr when translated font: document.querySelectorAll('font').length, // > 0 when translated lang: document.documentElement.lang // differs from the source language when translated }) 

With translation on, we got the translated-ltr class, 78 <font> elements and lang=ko. After turning it off, 0 <font> elements and lang=ja. Make this the gate at the start of your automation: if the font count is not 0, do not touch the rich editor on that page. Stopping before the crash beats tracing it afterward.

Why notranslate and launch flags did not work

The notranslate meta and the launch flag each left 78 font elements; editing the profile Preferences left 0

We tried the standard fixes first. A per-site "always translate" entry stored in the profile beat all of them:

Attempt Result
Inject <meta name="google" content="notranslate"> before the document starts Failed: translated-ltr still set, 78 <font> elements
Launch flag --disable-features=Translate,TranslateUI Failed: same result
Edit the profile Preferences while Chrome is closed Worked: 0 <font> elements, lang=ja

Our script does four things to Preferences:

sites = {"note.com": "0", "editor.note.com": "0"} for scope in (d, d.get("account_values", {})): if "translate_allowlists" in scope: scope["translate_allowlists"] = {} # clear "always translate" bl = scope.get("translate_blocked_languages") if isinstance(bl, list) and "ja" not in bl: bl.append("ja") # never translate this language if "translate_site_blocklist_with_time" in scope: scope["translate_site_blocklist_with_time"].update(sites) d.setdefault("translate", {})["enabled"] = False d.setdefault("account_values", {}).setdefault("translate", {})["enabled"] = False 

Swap ja and the site names for your own source language and domains. The setting also exists under account_values, so patch both places. Do this only with Chrome fully closed. Our script checks /json/version first and aborts with GATE FAIL if Chrome is running, because on exit Chrome overwrites the file with its in-memory settings. Back the original up first; we use Preferences.bak_notranslate.

Recovery, and one side finding

  1. Close the automation Chrome cleanly with CDP Browser.close. Killing by process name also kills unrelated work.
  2. Run the Preferences patch. It refuses to run if Chrome is up.
  3. Restart Chrome with the same --user-data-dir, window placed off-screen (--window-position=-2400,0) so it does not take over your display.
  4. Confirm the login session survived. It should, since the profile is unchanged.
  5. Run the translation gate on the target page: 0 <font> elements and the original lang.
  6. Resume editing.

For selection we stopped dragging. We now focus with a real click in the body, place the caret with the Selection API, and extend with Shift plus arrow keys. No coordinates are involved, so phrases spanning two lines select correctly.

The side finding: the real click is required. With only the Selection API moving the caret, Enter and typing did nothing at all (still 36 blocks, 0 anchors inserted). After the change, all 6 previously failing edits went through, and a logged-out check returned HTTP 200 for all 6 pages with exactly one target link each.

When this does not apply

This fix only helps if translation is the cause. If the gate shows 0 <font> elements and no translated-ltr and you still crash, look at other DOM mutators: extensions, ad blockers, accessibility tools. If framenavigated did fire, it is not a client crash, so check response codes first. If translation returns after the patch, Chrome was probably running while you edited the file, so close it and redo it, including account_values.

The key names such as translate_allowlists are what we saw in our environment. Other Chrome versions or operating systems may structure Preferences differently. The mechanism, translation replacing text nodes, applies to rich editors broadly, but which operations crash differs by implementation; we confirmed selection extension and typing only.

If you want the full walkthrough, including the failure table and FAQ, it is in our original post on the Chrome auto-translate editor crash. The same symptom-versus-cause pattern shows up in a connect_over_cdp hang caused by a single tab.

Free tools I keep on my own site: 34 calculators and how-to guides - loans, severance pay, take-home salary, savings vs deposits. New ones go out in one email, no ads.