I’m working on learn-sql-by-building-a-student-database-part-2. Everytime I load it today, I get an error, whereby the CodeRoad window remains blank and en error message pops up bottom right. It reads:
“Error loading webview: Error: Could not register service workers: SecurityError: The operation is insecure”
Anybody else getting this? Is there a workaround I can try? I’ve tried loading straight in codeally and, whilst that worked yesterday (when I was experiencing above issue as well), today their playground is 404ing.
June 7, 2022, 7:23pm
I’m not seeing this - are you still having problems
@obarzanka? Everything looks like it loaded up for you there. I would try to close CodeRoad and open it back up manually. There’s instructions and a gif here - it may take a few tries. Let us know if that works.
hey, thanks for checking! I’m still getting the issue, ie I load coderoad and then nothing comes up. I’ve followed the instructions in the gif, but just coming up with the error as usual
June 23, 2022, 1:48am
Were you ever able to get it working
@obarzanka? If so, what did you do?
Hello! I wasn’t ever able to get it working. And annoyingly when I’ve gone through CodeAlly directly, my completed challenges don’t transfer over
The error may be related to a Firefox setting. Are you using Firefox?
See related links:
04:52PM - 25 Jan 19 UTC
02:31AM - 22 Jul 19 UTC
# 🐞 bug report
### Affected Package
### Is this
… a regression?
Probubly not, after looking at the commit history of [module.ts](https://github.com/angular/angular/blob/master/packages/service-worker/src/module.ts) it seems the issue has been there ever since.
After creating a base Project and adding Service Worker then opening it on Firefox (mine is at version 64): it works normally.
But after going to Firefox's cookie setting and setting its cookie preference to "Keep unitl Firefox is closed", the browser then complains about `SecurityError`
Although the comment at [module.ts line 46](https://github.com/angular/angular/blob/master/packages/service-worker/src/module.ts#L46) expresses that not returning the promise will prevent the App from crashing. SDKs like [Sentry](https://sentry.io) does catch and log them.
I do extra custom things with Sentry, and skipping this particular exception is needed (since its not actually an exception).
Adding an noop `.catch(() => void 0)` to [module.ts line 47](https://github.com/angular/angular/blob/master/packages/service-worker/src/module.ts#L47) does quiet things down.
Will submit a PR with that code, just going to wait for a while to see if the community has some thoughts first.
## 🔬 Minimal Reproduction
1. Create the Project with Service Worker
ng new test-project
ng add @angular/pwa
ng build --prod
2. Serve files using `http-server` and open `http://localhost:8080` using a later version of Firefox:
3. Go to Firefox's cookie preference to "Keep unitl Firefox is closed"
4. Open DevTools and see the stack trace.
## 🔥 Exception or Error
<summary>ERROR Error: "Uncaught (in promise): SecurityError: The operation is insecure</summary>
ERROR Error: "Uncaught (in promise): SecurityError: The operation is insecure
## 🌍 Your Environment
Angular CLI: 7.2.3
OS: linux x64
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
08:35PM - 18 Apr 22 UTC
02:29AM - 20 Apr 22 UTC
### Bug description
When opening a GitHub repository as a GitPod workspace, t
… he following error is shown continuously: `Error loading webview: Error: Could not register service workers: SecurityError: The operation is insecure.`
- Fedora Linux 35
- Firefox 98.0.2(64 bit) (Flatpack version)
PD: And happened to me again. I just Only enabled and disabled the “Coookies” Box then I reloaded all the tabs and Works Again
I could cry! Maybe an overreaction but it works! Thank you so much for doing such a deep dive. Really appreciate it
And happened to me again. I just Only enabled and disabled the “Coookies” Box then I reloaded all the tabs and Works Again