wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

Ooops! WordPress Playground had a hiccup!

Open uzariimalik12-ship-it opened this issue 1 month ago • 28 comments

See the developer tools for error details. Try again If the problem persists, please report an issue on GitHub.

uzariimalik12-ship-it avatar Oct 12 '26 14:10 uzariimalik12-ship-it

Hi @uzariimalik12-ship-it,

Can you share the following information:

  • OS version
  • Browser version
  • Console error if needed

fellyph avatar Oct 12 '26 16:10 fellyph

I'm noticing this in Chrome 154.0.8037.98 on MacOS.

Doing a hard reload:

Image

Console:

?php=8.4&wp=latest&networking=yes&language=&multisite=no:1 <meta name="apple-mobile-web-app-capable" content="yes"> is deprecated. Please include <meta name="mobile-web-app-capable" content="yes">
wordpress-DLEoGjgB.js:1 Failed to update service worker. TypeError: Failed to update a ServiceWorker for scope ('https://playground.wordpress.net/') with script ('https://playground.wordpress.net/sw.js'): A bad HTTP response code (403) was received when fetching the script.
Ke @ wordpress-DLEoGjgB.js:1
playground-worker-endpoint-blueprints-ysD0hoY3.js:5268 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.js
opfs-site-storage-wmmpyS_c.js:2 TypeError: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.jsCaused by: Error: Comlink method call failed
    at Object.deserialize (wordpress-DLEoGjgB.js:14:13356)
    at L (wordpress-DLEoGjgB.js:14:3884)
    at async Object.boot (wordpress-DLEoGjgB.js:14:33970)Caused by: Error: Comlink method call failed
    at Object.deserialize (opfs-site-storage-wmmpyS_c.js:15:13486)
    at gr (opfs-site-storage-wmmpyS_c.js:15:3958)
    at async SA.bootPlayground (blueprint-editor-B3tSK9LY.js:2:2887)
    at async pq (blueprint-editor-B3tSK9LY.js:2:7018)
    at async main-CI1utP6L.js:58:4919
qu @ opfs-site-storage-wmmpyS_c.js:2
opfs-site-storage-wmmpyS_c.js:2 Error creating saved site. Falling back to a temporary site. Error: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.js
    at Object.effect (blueprint-editor-B3tSK9LY.js:80:27629)
    at a (blueprint-editor-B3tSK9LY.js:74:31573)
    at blueprint-editor-B3tSK9LY.js:74:32484
    at blueprint-editor-B3tSK9LY.js:74:36608
    at blueprint-editor-B3tSK9LY.js:74:17826
    at dispatch (blueprint-editor-B3tSK9LY.js:74:6557)
    at main-CI1utP6L.js:58:5827
qu @ opfs-site-storage-wmmpyS_c.js:2
wordpress-DLEoGjgB.js:1 Failed to update service worker. TypeError: Failed to update a ServiceWorker for scope ('https://playground.wordpress.net/') with script ('https://playground.wordpress.net/sw.js'): A bad HTTP response code (403) was received when fetching the script.
Ke @ wordpress-DLEoGjgB.js:1
playground-worker-endpoint-blueprints-ysD0hoY3.js:5268 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.js
opfs-site-storage-wmmpyS_c.js:2 TypeError: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.jsCaused by: Error: Comlink method call failed
    at Object.deserialize (wordpress-DLEoGjgB.js:14:13356)
    at L (wordpress-DLEoGjgB.js:14:3884)
    at async Object.boot (wordpress-DLEoGjgB.js:14:33970)Caused by: Error: Comlink method call failed
    at Object.deserialize (opfs-site-storage-wmmpyS_c.js:15:13486)
    at gr (opfs-site-storage-wmmpyS_c.js:15:3958)
    at async SA.bootPlayground (blueprint-editor-B3tSK9LY.js:2:2887)
    at async pq (blueprint-editor-B3tSK9LY.js:2:7018)
    at async main-CI1utP6L.js:58:4919
qu @ opfs-site-storage-wmmpyS_c.js:2
opfs-site-storage-wmmpyS_c.js:2 Error: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.js
    at Object.effect (blueprint-editor-B3tSK9LY.js:80:27629)
    at a (blueprint-editor-B3tSK9LY.js:74:31573)
    at blueprint-editor-B3tSK9LY.js:74:32484
    at blueprint-editor-B3tSK9LY.js:74:36608
    at blueprint-editor-B3tSK9LY.js:74:17826
    at dispatch (blueprint-editor-B3tSK9LY.js:74:6557)
    at main-CI1utP6L.js:58:5827
qu @ opfs-site-storage-wmmpyS_c.js:2
blueprint-editor-B3tSK9LY.js:80 Uncaught (in promise) Error: Failed to fetch dynamically imported module: https://playground.wordpress.net/assets/php_8_4-BewWylNE.js
    at Object.effect (blueprint-editor-B3tSK9LY.js:80:27629)
    at a (blueprint-editor-B3tSK9LY.js:74:31573)
    at blueprint-editor-B3tSK9LY.js:74:32484
    at blueprint-editor-B3tSK9LY.js:74:36608
    at blueprint-editor-B3tSK9LY.js:74:17826
    at dispatch (blueprint-editor-B3tSK9LY.js:74:6557)
    at main-CI1utP6L.js:58:5827

Then doing a soft reload:

Image

Console:

?php=8.4&wp=latest&networking=yes&language=&multisite=no:1 <meta name="apple-mobile-web-app-capable" content="yes"> is deprecated. Please include <meta name="mobile-web-app-capable" content="yes">
?php=8.4&wp=latest&networking=yes&language=&multisite=no:1 <meta name="apple-mobile-web-app-capable" content="yes"> is deprecated. Please include <meta name="mobile-web-app-capable" content="yes">
opfs-site-storage-wmmpyS_c.js:2 Unable to clean up autosave site-kind-quiet-garden: NotFoundError: A requested file or directory could not be found at the time an operation was processed.
qu @ opfs-site-storage-wmmpyS_c.js:2
logMessage @ opfs-site-storage-wmmpyS_c.js:5
warn @ opfs-site-storage-wmmpyS_c.js:5
(anonymous) @ opfs-site-storage-wmmpyS_c.js:2561
Promise.catch
list @ opfs-site-storage-wmmpyS_c.js:2561
await in list
(anonymous) @ main-CI1utP6L.js:108
Mf @ blueprint-editor-B3tSK9LY.js:43
xs @ blueprint-editor-B3tSK9LY.js:43
vw @ blueprint-editor-B3tSK9LY.js:43
Uo @ blueprint-editor-B3tSK9LY.js:41
qD @ blueprint-editor-B3tSK9LY.js:43
ni @ blueprint-editor-B3tSK9LY.js:43
NP @ blueprint-editor-B3tSK9LY.js:43
b @ blueprint-editor-B3tSK9LY.js:28
D @ blueprint-editor-B3tSK9LY.js:28
postMessage
$ @ blueprint-editor-B3tSK9LY.js:28
I @ blueprint-editor-B3tSK9LY.js:28
e.unstable_scheduleCallback @ blueprint-editor-B3tSK9LY.js:28
zP @ blueprint-editor-B3tSK9LY.js:43
pn @ blueprint-editor-B3tSK9LY.js:43
or @ blueprint-editor-B3tSK9LY.js:43
jf @ blueprint-editor-B3tSK9LY.js:43
If.render.fy.render @ blueprint-editor-B3tSK9LY.js:43
(anonymous) @ main-CI1utP6L.js:108
opfs-site-storage-wmmpyS_c.js:2 Error reading site site-kind-quiet-garden: NotFoundError: A requested file or directory could not be found at the time an operation was processed.
qu @ opfs-site-storage-wmmpyS_c.js:2
logMessage @ opfs-site-storage-wmmpyS_c.js:5
error @ opfs-site-storage-wmmpyS_c.js:5
list @ opfs-site-storage-wmmpyS_c.js:2561
await in list
(anonymous) @ main-CI1utP6L.js:108
Mf @ blueprint-editor-B3tSK9LY.js:43
xs @ blueprint-editor-B3tSK9LY.js:43
vw @ blueprint-editor-B3tSK9LY.js:43
Uo @ blueprint-editor-B3tSK9LY.js:41
qD @ blueprint-editor-B3tSK9LY.js:43
ni @ blueprint-editor-B3tSK9LY.js:43
NP @ blueprint-editor-B3tSK9LY.js:43
b @ blueprint-editor-B3tSK9LY.js:28
D @ blueprint-editor-B3tSK9LY.js:28
postMessage
$ @ blueprint-editor-B3tSK9LY.js:28
I @ blueprint-editor-B3tSK9LY.js:28
e.unstable_scheduleCallback @ blueprint-editor-B3tSK9LY.js:28
zP @ blueprint-editor-B3tSK9LY.js:43
pn @ blueprint-editor-B3tSK9LY.js:43
or @ blueprint-editor-B3tSK9LY.js:43
jf @ blueprint-editor-B3tSK9LY.js:43
If.render.fy.render @ blueprint-editor-B3tSK9LY.js:43
(anonymous) @ main-CI1utP6L.js:108
opfs-site-storage-wmmpyS_c.js:2 Error reading site site-kind-quiet-garden: NotFoundError: A requested file or directory could not be found at the time an operation was processed.
qu @ opfs-site-storage-wmmpyS_c.js:2
logMessage @ opfs-site-storage-wmmpyS_c.js:5
error @ opfs-site-storage-wmmpyS_c.js:5
listMetadata @ opfs-site-storage-wmmpyS_c.js:2561
await in listMetadata
(anonymous) @ blueprint-editor-B3tSK9LY.js:80
await in (anonymous)
(anonymous) @ blueprint-editor-B3tSK9LY.js:74
a @ blueprint-editor-B3tSK9LY.js:80
createNewSavedSite @ blueprint-editor-B3tSK9LY.js:80
L @ main-CI1utP6L.js:108
(anonymous) @ main-CI1utP6L.js:108
Mf @ blueprint-editor-B3tSK9LY.js:43
xs @ blueprint-editor-B3tSK9LY.js:43
qD @ blueprint-editor-B3tSK9LY.js:43
ni @ blueprint-editor-B3tSK9LY.js:43
vw @ blueprint-editor-B3tSK9LY.js:43
Uo @ blueprint-editor-B3tSK9LY.js:41
(anonymous) @ blueprint-editor-B3tSK9LY.js:43
opfs-site-storage-wmmpyS_c.js:2 Error creating saved site. Falling back to a temporary site. Error: The browser storage worker failed while writing /sites/site-determined-noisy-mountain/wp-runtime.json at /assets/opfs-site-storage-worker-for-safari-pJM5slyx.js.
    at r.onerror (opfs-site-storage-wmmpyS_c.js:2561:15289)
qu @ opfs-site-storage-wmmpyS_c.js:2
logMessage @ opfs-site-storage-wmmpyS_c.js:5
error @ opfs-site-storage-wmmpyS_c.js:5
L @ main-CI1utP6L.js:108
await in L
(anonymous) @ main-CI1utP6L.js:108
Mf @ blueprint-editor-B3tSK9LY.js:43
xs @ blueprint-editor-B3tSK9LY.js:43
qD @ blueprint-editor-B3tSK9LY.js:43
ni @ blueprint-editor-B3tSK9LY.js:43
vw @ blueprint-editor-B3tSK9LY.js:43
Uo @ blueprint-editor-B3tSK9LY.js:41
(anonymous) @ blueprint-editor-B3tSK9LY.js:43
wordpress-DLEoGjgB.js:1 Failed to update service worker. TypeError: Failed to update a ServiceWorker for scope ('https://playground.wordpress.net/') with script ('https://playground.wordpress.net/sw.js'): A bad HTTP response code (403) was received when fetching the script.
Ke @ wordpress-DLEoGjgB.js:1
logMessage @ wordpress-DLEoGjgB.js:4
error @ wordpress-DLEoGjgB.js:4
Zt @ wordpress-DLEoGjgB.js:14
await in Zt
(anonymous) @ wordpress-DLEoGjgB.js:15
wordpress-DLEoGjgB.js:15 Error: WebWorker failed to load at https://playground.wordpress.net/playground-worker-endpoint-blueprints-ysD0hoY3.js. 
    at t.onerror (wordpress-DLEoGjgB.js:14:25963)
(anonymous) @ wordpress-DLEoGjgB.js:15

westonruter avatar Oct 13 '26 01:10 westonruter

Interestingly, I have no errors in Firefox 157.0.1 (aarch64).

westonruter avatar Oct 13 '26 01:10 westonruter

I'm experiencing the same issue in my environment, so I'm sharing my system and browser details

macOS 27.0.1

  • Chrome 155.0.8059.40: Error
  • Dia 1.52.0 (Chromium Engine Version 155.0.8059.40): Error
  • Brave 1.97.56 (Chromium Engine Version: 155.0.8059.40) : Works correctly
  • Safari 27.0.1 : Works correctly

Since it works in Safari and Firefox, the issue may be related to Chrome (Chromium)-specific features or behavior.

hiroshisatoy avatar Oct 13 '26 07:10 hiroshisatoy

I have the same issue and cannot access playground, neither via custom link, nor simply by accessing playground.wordpress.net without any custom configuration. Confirmed by a peer from a different machine in a different office.

apermo avatar Oct 13 '26 17:10 apermo

Tested on several Browsers, seem to fail only for Chromium

  • Works: Safari, Firefox, Zen (firefox)
  • Fails: Chrome (Version 153.0.8010.52 arm64), Helium (Chromium based)

System: macOS 26.6.2

michakrapp avatar Oct 13 '26 17:10 michakrapp

Unfortunately we're unable to reproduce this so far. We had one occurrence ourself but nothing reliably reproducible so far. Could any of you try to go to DevTools → Application → Service Workers → Update and tell us if it makes a difference? Thanks!

It might also be useful to get the HTTP headers of those 403 requests. For example through a HAR file (right click in the network tab on a request: copy > copy all as HAR).

akirk avatar Oct 13 '26 19:10 akirk

Thanks, @akirk! This resolved the issue for me in Chrome and other Chromium-based browsers. After clicking “Update” under DevTools → Application → Service Workers and reloading the page twice, Playground loaded correctly. I’m attaching a screenshot to help make the steps easier to follow.

Image

hiroshisatoy avatar Oct 13 '26 23:10 hiroshisatoy

It seems to be working now for me in Chrome.

westonruter avatar Oct 14 '26 02:10 westonruter

@akirk that DevTools → Application → Service Workers → Update did the trick for me too.

And the browser is: Version 154.0.8037.98 (Offizieller Build) (arm64) on MacOS 26.6.2

apermo avatar Oct 14 '26 06:10 apermo

Also had to do a hard refresh, Mac: Cmd + Shift + R Then it worked with the Service Workers Update

michakrapp avatar Oct 14 '26 09:10 michakrapp

@akirk Here are the 403 details you asked for, observed around 15:00 UTC on October 14 in Chrome 155 on macOS, with dc;desc=bom in the response headers. The time is approximate; I did not save a HAR. In my session, the asset 403 responses contained a browser-check page instead of JavaScript.

What I saw in the broken tab:

  • sw.js returned 200, but /assets/index-B7AUy5J7.js, /assets/modulepreload-polyfill-B5Qt9EMX.js, /assets/opfs-site-storage-wmmpyS_c.js and /favicon.ico returned 403. The same URLs returned 200 from curl on the same machine.
  • The 403 body starts with <title>Checking your browser...</title><noscript><p>Javascript required</p></noscript>, with content-type: text/html and server-timing: a8c-cdn, dc;desc=bom, cache;desc=BYPASS. The site had an _hcc cookie.
  • Fetching the same asset from the page with and without credentials gave 403 both times.

After I opened https://playground.wordpress.net/favicon.ico directly in that tab, the _hcc cookie was replaced by _hcp and Playground loaded with no failed requests. I did not touch the service worker, the caches or the site data. core.trac.wordpress.org shows the same check page and sets the same _hcp cookie.

My session did not reproduce the sw.js 403 from the earlier reports, so I can't say whether that one is the same check.

A secondary thought: the handler for / in sw.js falls back to a cached response when the network response is not successful, so a challenged navigation might get the cached app instead of the check page. I did not capture this happening.

Could you check the CDN logs around that time? Is a browser-check response expected for JavaScript module requests? If it happens to me again, I'll capture a sanitized HAR before recovering, including any request IDs.

ekamran avatar Oct 14 '26 15:10 ekamran

We embed Playground (@wp-playground/client 3.1.45, startPlaygroundWeb with remoteUrl: https://playground.wordpress.net/remote.html) and hit this today (2026-10-26, sw.js Last-Modified October 26 2026 12:19). Some findings that may help, including one about embedded use that I don't think has come up here yet.

It is not tied to a Chrome version. It reproduces in Chrome for Testing 155.0.8059.84 and 152.0.7977.82, both run headed with a fresh profile through puppeteer. The same builds run headless (HeadlessChrome user agent) boot fine. On another computer, the same Chrome works. So it looks like the CDN's bot check deciding per browser and network, not a browser regression.

What fails. On a page that the service worker controls, the SW's own fetch() of a same-origin script gets the check page instead of the script:

GET /assets/wasm-feature-detect-DUYnTGBd.js (SW fetch, Referer: /sw.js) 403 text/html server-timing: a8c-cdn, dc;desc=bur, cache;desc=BYPASS

Checking your browser... … /__challenge/challenge.js Same-origin responses that worked had cache;desc=HIT. Both Qn() (static assets) and Jn() (/, /remote.html) fetch with cache: 'no-store', so these requests skip the CDN cache and go through the check. The SW returns that 403 HTML as-is, so new Worker(url, { type: 'module' }) fires error with an empty message, and remote.html shows "WebWorker failed to load at …/playground-worker-endpoint-blueprints-Cj0FOHvA.js". A worker on a page the SW does not control loads fine, and so does a cross-origin fetch() of the same asset from another site.

Why reloading rarely clears it. Jn() serves the cached remote.html when the network answer is not ok. That hides the check page, so the browser never runs the check and never gets the cookie. When the check page does reach the tab (a fresh profile, or after Update in DevTools), its script sets _hcr and _hcc, and from then on the SW's fetches get 200. That fits the "DevTools → Service Workers → Update, then reload" workaround above.

Embedded Playground cannot get past it at all. In a cross-site iframe (remote.html inside our app, as startPlaygroundWeb sets it up), the check can never be solved. Its cookies are set without SameSite (so Lax) and without Partitioned, so they are not sent from the third-party frame. I checked this: I solved the check top-level on playground.wordpress.net first (cookies present), then booted an embedded Playground in the same profile, and it failed exactly the same way. For anyone embedding Playground, affected visitors can't recover by any reload.

Also: in this state remote.html shows its error page and never exposes its API, so startPlaygroundWeb() neither resolves nor rejects. Embedders can't tell "slow cold start" from "never going to start". A rejection, or a message to the parent, would help.

Possible fixes

Exempt same-origin script and asset requests from the service worker (or everything under /assets/ and /playground-worker-endpoint-*.js) from the check, or don't send them with cache: 'no-store'. The hashed assets are immutable anyway. In the SW, treat a non-ok text/html answer for a script or worker request as a failure, not a response, and make Jn() not hide a check page behind the cached document. If the check has to stay, set its cookies with SameSite=None; Secure; Partitioned so an embedded remote.html can solve and keep it. Make startPlaygroundWeb() reject when remote.html fails to boot. Repro (headed)

Fresh Chrome profile, go to https://playground.wordpress.net/remote.html, wait for navigator.serviceWorker.ready, reload. In the console: new Worker('/assets/wasm-feature-detect-DUYnTGBd.js', {type:'module'}).onerror = e => console.log('error', JSON.stringify(e.message)) → error "". The service worker's Network panel shows the 403 check page for that URL. Wait about 15 s on a top-level page for the check to finish, then repeat → the worker loads.

Embedded: on any other origin, startPlaygroundWeb({ iframe, remoteUrl: 'https://playground.wordpress.net/remote.html' }) never settles. The frame console shows "WebWorker failed to load", even after step 3.

FTWAgency avatar Oct 26 '26 22:10 FTWAgency

@FTWAgency We have deployed some changes two hours ago, can you confirm if the issue still going?

fellyph avatar Oct 27 '26 16:10 fellyph

I haven't found a stable reproduction yet, but I found and fixed a few issues that would result in this error:

  • #4525
  • #4523
  • #4526
  • #4521
  • a1a7fff6f1b4bc2154e1c8c18bfb05b011d1c38f

Let's see if this still happens for anyone in the next couple of weeks.

adamziel avatar Oct 27 '26 19:10 adamziel

Happening for us on https://repl.alley.dev/ where remote.html returns a challenge required:

<!DOCTYPE html>
<title>Checking your browser...</title>
<noscript>
    <p>Javascript required</p>
</noscript>
<meta content="width=device-width" name=viewport>
<link href="data:;base64,=" rel=icon>
<script src="/__challenge/probes.js?v=2f8d89405f2c"></script>
<script>
    window.HASHCASH_CONFIG = {
        prefix: "0000",
        minTime: 1500,
        headline: "Checking your browser"
    };
</script>
<script src="/__challenge/challenge.js?v=edc496c64ce2"></script>
...

srtfisher avatar Nov 02 '26 14:11 srtfisher

@adamziel try running on a slow connection; when I was traveling in Brazil, I saw the error a few times.

fellyph avatar Nov 02 '26 15:11 fellyph

We are working on changes in #4557 that should reduce the possibility of this issue. After those are applied, if we still see the issue, we will have to follow up with our hosting provider's system folks.

brandonpayton avatar Nov 06 '26 23:11 brandonpayton

Hi @FTWAgency, @srtfisher, a fix was deployed on the hosting side for the browser-check responses on service worker requests. Could you try again, including the embedded case, and tell us if it loads now, with your browser version? If it still fails, please post a screenshot of the console error or the network error. 🙏

mho22 avatar Nov 18 '26 09:11 mho22

There is still there

Qaisarkhursheed avatar Nov 18 '26 17:11 Qaisarkhursheed