Wasm error in service worker screen

Thanks for reporting this @skilesare. This wonderfully descriptive error message is shown for any exception thrown inside the WASM boundary so we don’t know what exactly is causing that, but we have a new service worker version currently being rolled out that enables better exception handling and this should show a more helpful message.

@ZackDS the error message you’ve posted looks like a connection issue with the boundary nodes. I’ll ping the relevant team.

@peterparker the issue you posted is caused by either a replica that’s running behind, or a device that’s ahead.

I’m confident that these are three independent issues. The original is on Saturday, ZackDS’s is from Thursday and peterparker’s is from Sunday.


Hey folks - apologies for the inconvenience. Like @NathanosDev these are likely different issues.

The issue pointed out by @skilesare is related to an upgrade to the service worker. After the new version of the service worker loads, it fails to load the WASM for response verification.
This can be fixed by simply refreshing the page which will require the service worker to reload and load the WASM properly.

This is not the first time we run into issues with the service worker loading the wasm after an upgrade, so to avoid future issues, we are going to be bundling the WASM into the service worker.

1 Like

I can’t log in to nns again on my iphone even though I cleared my browser cache

This is the error I’m getting
“Page failed to load.
ReferenceError: Can’t find variable: DecompressionStream.”

I’m having the same issue. Redeployed the asset canister with v0.14.3 and still getting the error.

DecompressionStream is now used in the service worker to handle the different compressions (e.g. gzip, deflate).

Chrome has support since 2020, the issue is likely related that you are using a browser that is out-of-date, an update should fix it.

Firefox has added support for it since May, 2023 and Safari since March, 2023.

fyi @yangzijiang @curry

I downloaded chorme in the appstore, but this problem still exists, I don’t know if it has something to do with the fact that I turned off the system update

Chrome for Desktop has this available since version 80 (Released 2020-02-04).

Are you using mobile? if yes, then note that even while using Chrome on an iOS device, it is using safari as it’s engine, and Safari added support on iOS only for version 16.4 (Released 2023-03-27).

thanks, I’m going to update.

@Kepler Just a suggestion: it may be worth considering polyfilll such features when a user’s browser does not support it.

Asking everyone to upgrade to the latest technology is often unrealistic, because people often have their own reasons to keep (or be stuck with) their old devices/OSes/etc.

Given that service worker is such an essential piece, and will pretty much impact all sites on IC, it makes even more sense to be a bit conservative here.

The DecompressionStream was added with the goal of reducing the size of the service worker, which polyfills would not help since we would still maintain the bigger bundle size with it.

We are discussing the possibility of alternatives already though (e.g. polyfills) since we missed the fact that it was added only in Q1/2 2023 for Safari and Firefox respectively. Note that according to browser stats, 84.59% of global users have versions that support that API already, in terms of comparison this is 9.58% lower then supporting service workers themselves which is currently at 94.17%.


Thank you, the problem is solved after updating the system, but updating the system is not what I want. But still very grateful, hope this little bug can be fixed, so it will be very friendly to ordinary users like me

I very much agree!It would be great if it could be like you said

We will make a release today that will fix this issue for people with older browsers, sorry for the frustration!


Can we get an update when the fix is released :pray: :slight_smile:

This just now

Made my own thread to discuss this without seeing this one.

Have the most updated version of chrome & safari and still receiving:

“ Page failed to load.

ReferenceError: Can’t find variable: DecompressionStream”

Any insight?

Hi @Jamietier - we are rolling out another version of the service worker just now that doesn’t rely on the DecompressionStreams API which are only available in more recent versions of the safari.

Yes, i noticed the Dapps weren’t working earlier today. Thanks for the info. Hopefully the team fix this soon.

:+1: Thanks for the response.