Skip to content

Error 404 with several releases #1640

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

Closed
SniperGER opened this issue May 14, 2020 · 12 comments
Closed

Error 404 with several releases #1640

SniperGER opened this issue May 14, 2020 · 12 comments

Comments

@SniperGER
Copy link

Running a fresh install of code-server on macOS 10.12.6 (yes, it's old and no, I'm not going to update anytime soon).

I can login using the generated password just fine, but then I receive several 404's, rendering code-server completely useless for me. Checking in Finder shows me that these files are actually missing, but do in fact exist in the various vscode build folders.

Next I'm trying to copy the missing files into the output directory, but this breaks more than it fixes.

I've also tried to compile everything myself, but this was just wasted time, because the same files are still missing.

I've checked previous 3.x releases, the last 2.x release and even a few of the earliest releases (which I know at least one of them worked before when I first tried code-server), but even then I'm receiving 404's.

What is going on here?

@SniperGER
Copy link
Author

Here's the console output on Safari 11.0.3 (12604.5.6.1.1):

[Error] Unrecognized Content-Security-Policy directive 'manifest-src'.

[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
	(anonyme Funktion) (workbench.web.api.js:1574)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uriIpc.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uuid.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cancellation.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (buffer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (lifecycle.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (request.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (resources.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (browser.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (network.js, line 0)
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
	(anonyme Funktion) (workbench.web.api.js:1574)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (windows.js, line 0)
[Error] Unrecognized Content-Security-Policy directive 'manifest-src'.

[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
	(anonyme Funktion) (workbench.web.api.js:1574)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uriIpc.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uuid.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cancellation.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (buffer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (lifecycle.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (request.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (windows.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (resources.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (browser.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (network.js, line 0)
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
	(anonyme Funktion) (workbench.web.api.js:1574)

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

Can you try with the latest release?

@nhooyr nhooyr added the waiting-for-info Waiting for more information from submitter label May 18, 2020
@SniperGER
Copy link
Author

Still exactly the same errors. (This time not copied twice)

[Error] Unrecognized Content-Security-Policy directive 'manifest-src'.

[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
	(anonyme Funktion) (workbench.web.api.js:1607)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uriIpc.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uuid.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cancellation.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (buffer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (lifecycle.js, line 0)
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
	(anonyme Funktion) (workbench.web.api.js:1607)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (windows.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (browser.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (request.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (resources.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (network.js, line 0)

Plus, I had to force Homebrew to upgrade icu4c to 66.1 (from 64), which (seemingly) hasn't been mentioned anywhere.

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

Plus, I had to force Homebrew to upgrade icu4c to 66.1 (from 64), which (seemingly) hasn't been mentioned anywhere.

Huh interesting, are you building yourself?

@SniperGER
Copy link
Author

Nope, downloaded directly from Releases. Without updating, dyld was complaining about the missing library.

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.66.dylib
  Referenced from: [Redacted]/code-server-3.3.0-macos-amd64/bin/../lib/node
  Reason: image not found
Abort trap: 6

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

Yea yea looks like node depends on libicui dynamically, was not aware.

Not sure but maybe it's possible to add it in statically somehow.

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

Probably best for us to just build node from scratch.

@nhooyr
Copy link
Contributor

nhooyr commented May 18, 2020

Re the 404s, it's likely a bug with an older version of Safari.

Highly recommend upgrading your OS. But will leave up to @code-asher to see whether we can fix the CSP.

@code-asher
Copy link
Member

We could remove manifest-src since browsers should fall back to default-src in theory. If the result is just an error being logged that the directive isn't recognized and it's not causing any issues it might not be worth the change imo.

@nhooyr
Copy link
Contributor

nhooyr commented May 19, 2020

Yea, not sure what's causing those 404s. It's also not easy afaik to install older Safari versions one of us will need to VM older macOS.

@nhooyr
Copy link
Contributor

nhooyr commented May 19, 2020

Probably best to just recommend using Chrome.

nhooyr added a commit that referenced this issue May 22, 2020
Closes #1710

Also reported in #1640
nhooyr added a commit that referenced this issue May 27, 2020
Closes #1710

Also reported in #1640
nhooyr added a commit that referenced this issue May 27, 2020
Closes #1710

Also reported in #1640
@nhooyr nhooyr added needs-decision and removed waiting-for-info Waiting for more information from submitter labels Aug 31, 2020
@nhooyr
Copy link
Contributor

nhooyr commented Dec 8, 2020

I think we forgot to close this, it's been dealt with a long time ago.

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

3 participants