René's URL Explorer Experiment


Title: [Bug]: 'Error: WebSocket close with status code 1006' behind nginx proxy · Issue #6023 · coder/code-server · GitHub

Open Graph Title: [Bug]: 'Error: WebSocket close with status code 1006' behind nginx proxy · Issue #6023 · coder/code-server

X Title: [Bug]: 'Error: WebSocket close with status code 1006' behind nginx proxy · Issue #6023 · coder/code-server

Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: edge Local OS: macos Remote OS: ubuntu Remote Architecture: x86 code-server --version: 4.6.0 Steps to Reproduce proxy with nginx: lo...

Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: edge Local OS: macos Remote OS: ubuntu Remote Architecture: x86 code-server --version: 4.6.0...

X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: edge Local OS: macos Remote OS: ubuntu Remote Architecture: x86 code-server --version: 4.6.0...

Opengraph URL: https://github.com/coder/code-server/issues/6023

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: 'Error: WebSocket close with status code 1006' behind nginx proxy","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have searched the existing issues\r\n\r\n### OS/Web Information\r\n\r\n- Web Browser: edge\r\n- Local OS: macos\r\n- Remote OS: ubuntu\r\n- Remote Architecture: x86\r\n- `code-server --version`: 4.6.0\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n1. \r\nproxy with nginx:\r\n```\r\n  location /code/ {\r\n      proxy_pass https://0.0.0.0:9997/;\r\n      proxy_http_version 1.1;\r\n      proxy_set_header Host $host;\r\n      proxy_set_header Upgrade $http_upgrade;\r\n      proxy_read_timeout 86400;\r\n      proxy_set_header Connection $connection_upgrade;\r\n      proxy_set_header Accept-Encoding gzip;\r\n  }\r\n```\r\nrun code-server\r\n\r\n```\r\ncode-server  --cert MyCertificate.crt --cert-key MyKey.key --port 9997\r\n```\r\n\r\n2. visit from url: `${myhost}/code/`\r\n\r\n\r\n\r\n\r\n### Expected\r\n\r\nCode server opens up to home screen.\r\n\r\n### Actual\r\n\r\nerror log:\r\n![z1](https://user-images.githubusercontent.com/2908628/219312881-043ba8a4-c974-49ea-926c-9696430dbed6.png)\r\n\r\n\r\n\r\n### Logs\r\n\r\n![z2](https://user-images.githubusercontent.com/2908628/219312940-f93e2b4b-11d3-463e-9d71-358bc91ed394.png)\r\n\r\n\r\n\r\n### Screenshot/Video\r\n\r\n_No response_\r\n\r\n### Does this issue happen in VS Code or GitHub Codespaces?\r\n\r\n- [X] I cannot reproduce this in VS Code.\r\n- [X] I cannot reproduce this in GitHub Codespaces.\r\n\r\n### Are you accessing code-server over HTTPS?\r\n\r\n- [X] I am using HTTP.\r\n\r\n### Notes\r\n\r\nWhy does code-server create a websocket connection with port 80? And how can this issue be solved?\r\n\r\nThe network environment of the host machine:\r\nThe port 80 has been disabled by the administrator of the host machine, only a few ports are open.","author":{"url":"https://github.com/zirui","@type":"Person","name":"zirui"},"datePublished":"2023-02-16T08:51:38Z","url":"https://github.com/coder/code-server/issues/6023"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:668bf995-7296-cdc3-7212-5526ecec2c4d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA06:1F2F:7748CB:A12D9A:6B04402E
html-safe-nonce215cfcbc85404fe706730acf35c9e18dd72f44d36f023fdc3c0072d1cc096fb2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTA2OjFGMkY6Nzc0OENCOkExMkQ5QTo2QjA0NDAyRSIsInZpc2l0b3JfaWQiOiIxNTIxMjg1Nzg4OTI5OTAwNTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4d89e8797ff477f1d4827ba025c2fe975a77d46f541ea8b77e8ab366e2bf659d
hovercard-subject-tagissue:1587278700
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/6023/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0d6eb7b99d61bfe7e1039c5a05244063509fa7df221d40a51670ec393846bf21/coder/code-server/issues/6023
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0d6eb7b99d61bfe7e1039c5a05244063509fa7df221d40a51670ec393846bf21/coder/code-server/issues/6023
og:image:altIs there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: edge Local OS: macos Remote OS: ubuntu Remote Architecture: x86 code-server --version: 4.6.0...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezirui
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/6023#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F6023
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F6023
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/issues/6023
Reloadhttps://github.com/coder/code-server/issues/6023
Reloadhttps://github.com/coder/code-server/issues/6023
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests15 (15)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
https://github.com/coder/code-server
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/6023
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/6023
[Bug]: 'Error: WebSocket close with status code 1006' behind nginx proxyhttps://github.com/coder/code-server/issues/6023#top
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com/zirui
ziruihttps://github.com/zirui
on Feb 16, 2023https://github.com/coder/code-server/issues/6023#issue-1587278700
https://user-images.githubusercontent.com/2908628/219312881-043ba8a4-c974-49ea-926c-9696430dbed6.png
https://user-images.githubusercontent.com/2908628/219312940-f93e2b4b-11d3-463e-9d71-358bc91ed394.png
ziruihttps://github.com/zirui
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
on Feb 16, 2023https://github.com/coder/code-server/issues/6023#event-8534465797
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Feb 16, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1433714446
https://github.com/zirui
ziruihttps://github.com/zirui
on Feb 17, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1434059158
@code-asherhttps://github.com/code-asher
https://user-images.githubusercontent.com/2908628/219545218-e1af8584-14b6-40ae-b846-661b99b75094.png
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Feb 17, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1435066150
https://github.com/zirui
ziruihttps://github.com/zirui
on Feb 18, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1435526756
https://github.com/zirui
ziruihttps://github.com/zirui
on Feb 20, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1436314206
err.loghttps://github.com/coder/code-server/files/10779565/err.log
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Feb 27, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1447211624
https://github.com/zirui
ziruihttps://github.com/zirui
on Feb 28, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1447613424
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Mar 3, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1454153106
https://github.com/zirui
ziruihttps://github.com/zirui
on Mar 4, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1454746432
https://github.com/SimonTod
SimonTodhttps://github.com/SimonTod
on Mar 22, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1480050711
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Mar 27, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1485557028
@SimonTodhttps://github.com/SimonTod
https://github.com/TomBraun02
TomBraun02https://github.com/TomBraun02
on Apr 13, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1506560010
http://127.0.0.1:3443/http://127.0.0.1:3443/
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Apr 13, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1507363639
https://github.com/maxorlovsky
maxorlovskyhttps://github.com/maxorlovsky
on Apr 18, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1513514322
@TomBraun02https://github.com/TomBraun02
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Apr 21, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1518193365
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Apr 24, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1520718002
#6166https://github.com/coder/code-server/issues/6166
https://github.com/SimonTod
SimonTodhttps://github.com/SimonTod
on May 24, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1561638426
@code-asherhttps://github.com/code-asher
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on May 30, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1569138098
https://github.com/HeveraletLaidCenx
HeveraletLaidCenxhttps://github.com/HeveraletLaidCenx
on Jun 23, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1604737702
https://private-user-images.githubusercontent.com/34192286/248357490-8ff0d19c-6483-4957-8c1b-de3b3d758788.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0NDA5ODcsIm5iZiI6MTc5NTQ0MDY4NywicGF0aCI6Ii8zNDE5MjI4Ni8yNDgzNTc0OTAtOGZmMGQxOWMtNjQ4My00OTU3LThjMWItZGUzYjNkNzU4Nzg4LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIzVDEzMzEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgyMWJhZWRlMTU2YTJiN2ZhNzM0NmI0OTFjMTBmMGZlZTRmZTExNmQ2YTkzZjIyNDg5YmZiMDM4MzRkMDVmZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.6umElO8Hf3rh7vyAEi9BjMinX_d0umQ-Ia2EjiohWus
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Jun 23, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1605019327
https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#defaultshttps://caddyserver.com/docs/caddyfile/directives/reverse_proxy#defaults
https://github.com/HeveraletLaidCenx
HeveraletLaidCenxhttps://github.com/HeveraletLaidCenx
on Jun 24, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1605386409
https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#defaultshttps://caddyserver.com/docs/caddyfile/directives/reverse_proxy#defaults
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Jun 26, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1607947848
https://github.com/Izooc
Izoochttps://github.com/Izooc
on Nov 29, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1832863873
http://127.0.0.1:3443/http://127.0.0.1:3443/
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Dec 4, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1839215890
code-server/CHANGELOG.mdhttps://github.com/coder/code-server/blob/3e8100b70eedf1cd5d0c81c5e7cc35a55c0acc18/CHANGELOG.md#L195-L197
3e8100bhttps://github.com/coder/code-server/commit/3e8100b70eedf1cd5d0c81c5e7cc35a55c0acc18
https://github.com/izayoi-akira
izayoi-akirahttps://github.com/izayoi-akira
on Dec 13, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1853603731
http://127.0.0.1:3443/http://127.0.0.1:3443/
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Dec 15, 2023https://github.com/coder/code-server/issues/6023#issuecomment-1858355551
https://github.com/coder/code-server/blob/3e8100b70eedf1cd5d0c81c5e7cc35a55c0acc18/docs/guide.md#using-lets-encrypt-with-nginxhttps://github.com/coder/code-server/blob/3e8100b70eedf1cd5d0c81c5e7cc35a55c0acc18/docs/guide.md#using-lets-encrypt-with-nginx
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Jul 12, 2024https://github.com/coder/code-server/issues/6023#issuecomment-2226534677
code-asherhttps://github.com/code-asher
not plannedhttps://github.com/coder/code-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jul 12, 2024https://github.com/coder/code-server/issues/6023#event-13493214823
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/6023
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/6023
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.