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

[BUG] malformed HTTP response #426

Open
4 tasks done
nickyharpor opened this issue Oct 5, 2022 · 0 comments
Open
4 tasks done

[BUG] malformed HTTP response #426

nickyharpor opened this issue Oct 5, 2022 · 0 comments

Comments

@nickyharpor
Copy link

nickyharpor commented Oct 5, 2022

感谢你向 Xray_onekey 提交 issue!

在提交之前,请确认:

  • 如果你可以自己 debug 并解决的话,提交 PR 吧!
  • 我已经在 issues 中找过我要提出的问题;
  • 我已经使用最新版本的脚本测试过,问题依旧存在;
  • 我已经仔细看过脚本报错提示并无法自行解决问题。

请注意,如果你没有遵照此 Issue Template 填写内容,我们将看心情关闭这个 issue。


服务运行情况

请运行命令 service xray status 并粘贴输出:

xray.service - Xray Service
     Loaded: loaded (/etc/systemd/system/xray.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/xray.service.d
             └─10-donot_touch_single_conf.conf
     Active: active (running) since Tue 2022-10-04 22:48:21 CEST; 9h ago
       Docs: https://github.com/xtls
   Main PID: 462546 (xray)
      Tasks: 10 (limit: 38355)
     Memory: 11.8M
     CGroup: /system.slice/xray.service
             └─462546 /usr/local/bin/xray run -config /usr/local/etc/xray/config.json

Oct 04 22:48:21 dev systemd[1]: Started Xray Service.
Oct 04 22:48:21 dev xray[462546]: Xray 1.6.0 (Xray, Penetrates Everything.) Custom (go1.19.1 linux/amd64)
Oct 04 22:48:21 dev xray[462546]: A unified platform for anti-censorship.
Oct 04 22:48:21 dev xray[462546]: 2022/10/04 22:48:21 [Info] infra/conf/serial: Reading config: /usr/local/etc/xray/config.json

请运行命令 service nginx status 并粘贴输出:

nginx.service - nginx - high performance web server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-10-04 23:03:19 CEST; 9h ago
       Docs: https://nginx.org/en/docs/
    Process: 462915 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
   Main PID: 462923 (nginx)
      Tasks: 9 (limit: 38355)
     Memory: 26.5G
     CGroup: /system.slice/nginx.service
             ├─462923 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
             ├─462924 nginx: worker process
             ├─462925 nginx: worker process
             ├─462926 nginx: worker process
             ├─462927 nginx: worker process
             ├─462928 nginx: worker process
             ├─462929 nginx: worker process
             ├─462930 nginx: worker process
             └─462931 nginx: worker process

Oct 04 23:03:19 dev systemd[1]: Starting nginx - high performance web server...
Oct 04 23:03:19 dev nginx[462915]: nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
Oct 04 23:03:19 dev nginx[462915]: nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
Oct 04 23:03:19 dev nginx[462915]: nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
Oct 04 23:03:19 dev nginx[462915]: nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
Oct 04 23:03:19 dev nginx[462915]: nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead
Oct 04 23:03:19 dev systemd[1]: Started nginx - high performance web server.

环境 Environment

  • Ubuntu 20.04
    ……
  • Fresh install
    ……

说明 Description

Just installed VLESS + TCP + TLS + Nginx + WebSocket from the script with minimal change, but I can't connect to it via any client.

重现问题的具体步骤

  1. Install VLESS + TCP + TLS + Nginx + WebSocket via latest version of the automated script
  2. Configure client via any method
  3. Get error!

我预期会发生……?
Expected behavior: No error!

实际上发生了什么?
Actual behavior: Get this error in the client:

[Warning] failed to handler mux client connection > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://xxx.xxx/00ede/):  > malformed HTTP response "\x00\x00\x12\x04\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x80\x00\x04\x00\x01\x00\x00\x00\x05\x00\xff\xff\xff\x00\x00\x04\b\x00\x00\x00\x00\x00\u007f\xff\x00\x00\x00\x00\b\a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"] > common/retry: all retry attempts failed

可能的解决方案 Possible Solution

No idea!

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

1 participant