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

SSL protocol error when using '--host' #9100

Closed
7 tasks done
jackysee opened this issue Jul 14, 2022 · 5 comments
Closed
7 tasks done

SSL protocol error when using '--host' #9100

jackysee opened this issue Jul 14, 2022 · 5 comments

Comments

@jackysee
Copy link

jackysee commented Jul 14, 2022

Describe the bug

Create a new project using npm create vite@latest vite3test -- --template vue.
Running npm run dev -- --host and open the network link in the browser.
Chrome reported This site can’t provide a secure connection with error code of ERR_SSL_PROTOCOL_ERROR

image

Reproduction

https://github.com/jackysee/vite3hostssl

System Info

System:
    OS: Linux 5.4 Manjaro Linux
    CPU: (2) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
    Memory: 2.07 GB / 4.79 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 18.4.0 - /run/user/1000/fnm_multishells/1747721_1657771034401/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.13.2 - /run/user/1000/fnm_multishells/1747721_1657771034401/bin/npm
  Browsers:
    Firefox: 100.0.2
  npmPackages:
    @vitejs/plugin-vue: ^3.0.0 => 3.0.0
    vite: ^3.0.0 => 3.0.0

Used Package Manager

npm

Logs

No response

Validations

@bluwy
Copy link
Member

bluwy commented Jul 14, 2022

I can't reproduce this. Are you accessing via https: instead of http:?

@jackysee
Copy link
Author

Yes, I'm using 'https://'. Here is capture if I use firefox

image

@jackysee
Copy link
Author

Seems to be another error. Close for now.

@bluwy
Copy link
Member

bluwy commented Jul 14, 2022

👍 to use https, you need --https and a Vite plugin

@jackysee
Copy link
Author

Actually got another error using --https

image

@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants