Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical resources cannot be fetched from CDN #7

Open
eismail-aiopsgroup opened this issue Jul 25, 2024 · 1 comment
Open

Critical resources cannot be fetched from CDN #7

eismail-aiopsgroup opened this issue Jul 25, 2024 · 1 comment

Comments

@eismail-aiopsgroup
Copy link

eismail-aiopsgroup commented Jul 25, 2024

Very often critical resources like https://unpkg.com/[email protected]/min/vs/loader.js cannot be fetched (502 Bad Gateway) and because of that, the console fails to load. I'm not sure if the cartridge is requesting this file, or it's loaded by an NPM package but perhaps it's better to have them stored locally if possible.

The page tries to load for a minute:
image
image

When not being able to fetch the JS file, the editor is not available:
image

The same happens with files like:

So it looks like there's something wrong with unkp.com.
As a workaround, I open the failed files in the browser directly, and it helps for the next load. But even in this case, I'm sometimes receiving a bad gateway error.

@z1haze
Copy link
Owner

z1haze commented Jul 25, 2024

Yes, this been an intermittent issue for years now. We use moncao from cdn to avoid the hassle that comes with setting up web workers on sfcc as well as keeping the editor itself current.

It has been a few years since I've visited this issue, so maybe it is easier to dp now. If I can get some time to experiment, I will. Otherwise, a PR is always welcome if you're feeling up to it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants