Skip to content

[Bug]: Unable to load resource on iPad Safari #5532

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
4 tasks done
shp7724 opened this issue Sep 2, 2022 · 9 comments
Closed
4 tasks done

[Bug]: Unable to load resource on iPad Safari #5532

shp7724 opened this issue Sep 2, 2022 · 9 comments
Labels
needs-investigation This issue needs to be further investigated

Comments

@shp7724
Copy link

shp7724 commented Sep 2, 2022

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Safari
  • Local OS: iPadOS
  • Remote OS: macOS
  • Remote Architecture: arm64
  • code-server --version: 4.6.0

Steps to Reproduce

  1. open code-server
  2. login

Expected

The editor should load.

Actual

White blank page.

Logs

...
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/browser/browser.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/cancellation.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/marshalling.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/event.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/lifecycle.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/parts/request/browser/request.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/resources.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/uri.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/platform/product/common/product.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/network.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/platform/window/common/window.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/strings.js
File not found: /opt/homebrew/Cellar/code-server/4.6.0/libexec/lib/vscode/out/vs/base/common/path.js

Screenshot/Video

스크린샷 2022-09-03 오전 3 01 36

스크린샷 2022-09-03 오전 3 01 48

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

  • On macOS, everything works fine no matter which browser I use.
  • I tried reinstalling code-server several times.
  • If I refresh a lot of times, strangely it works sometimes. But most of the time it doesn't. I think the odds are lower on PWA mode.
@shp7724 shp7724 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Sep 2, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 6, 2022

This is very strange 🤔 How are you doing this exactly?

  1. install via homebrew on macOS
  2. expose and access on iPad?

@jsjoeio jsjoeio added waiting-for-info Waiting for more information from submitter and removed bug Something isn't working triage This issue needs to be triaged by a maintainer labels Sep 6, 2022
@shp7724
Copy link
Author

shp7724 commented Sep 6, 2022

Yes, I installed via homebrew and enabled HTTPS using nginx and certbot.

I managed to (temporalily) solve this issue by going through the whole installation process twice, which includes reinstalling everything(i.e. code-server, nginx, certbot) and reissuing ssl certificates. Reinstalling only one of them didn't solve the issue.

As far as I remember, I started seeing this issue when my ssl certificate got expired and reissued a new one. I don't see how it can be associated with this issue, though. :(

@jsjoeio
Copy link
Contributor

jsjoeio commented Sep 6, 2022

I guess what would be helpful for me is to know how to reproduce this. Would these steps suffice?

  1. install code-server on macOS via homebrew
  2. run ngrok to expose code-server
  3. open on iPad in Safari

@shp7724
Copy link
Author

shp7724 commented Oct 14, 2022

@jsjoeio It's been a quite a while, but I'm still suffering from this issue. The steps you suggested doesn't seem to be enough to reproduce it.

One thing I noticed though, is that all the failed requests are missing a cookie named code-server-session.

For instance, the following request succeeded with the cookie code-server-session:

image

whereas this request didn't (note the entire cookie is missing here):

image

If I copy the request as cURL and manually attach the same code-server-session cookie, it does seem to work.

I suspect this might have something to do with the internal session management mechanism of iPadOS safari.

@shp7724
Copy link
Author

shp7724 commented Oct 14, 2022

Temporarily disabling and reenabling Prevent cross-site tracking option in settings, everything started to work as expected. 🤯😮

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 14, 2022

Nice find!!! Can we close this now?

@shp7724
Copy link
Author

shp7724 commented Oct 19, 2022

@jsjoeio

It turned out to be a coincidence, I'm afraid. 😔

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 19, 2022

Darn it :( Okay well sadly, I don't have bandwidth to dive in now but feel free to leave comments here and I can be your async rubber duck

@jsjoeio jsjoeio added help-wanted needs-investigation This issue needs to be further investigated and removed waiting-for-info Waiting for more information from submitter labels Oct 19, 2022
@code-asher
Copy link
Member

I have seen this happen on a slow network where the bundle takes a while to load. It times out and tries to load the sources individually, which do not exist of course.

Closing but see #2407

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation This issue needs to be further investigated
Projects
None yet
Development

No branches or pull requests

3 participants