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

NVS v1.6.2 cannot access remote via https #239

Closed
finalwhy opened this issue Apr 23, 2022 · 6 comments · Fixed by #248
Closed

NVS v1.6.2 cannot access remote via https #239

finalwhy opened this issue Apr 23, 2022 · 6 comments · Fixed by #248

Comments

@finalwhy
Copy link

finalwhy commented Apr 23, 2022

OS:macOS 12.3.1 x64
NVS Version: 1.6.2
Description:

I update NVS to 1.6.2, then i run nvs add dubnium and 'nvs ls-remote', it console Protocol "https:" not supported. Expected "http:". I replace the nvs bootstrap node from v16 to v12 (and edit .nvs/default.json) and run 'nvs ls-remote' again,then it works.
I think it might be because of a breaking change in fs.readDir between 16 and 12.

ScreenShot:
screenShot

@FFengIll
Copy link

meet the same problem

@jasongin
Copy link
Owner

Thanks for reporting. I can't reproduce this error on Mac or Windows, and it wasn't detected in CI tests.

Can you set the environment variable NVS_DEBUG=1 and run again? That should print a stack trace with the error.

@jasongin
Copy link
Owner

Also, do you have any proxy configured via HTTP_PROXY or HTTPS_PROXY environment variables?

@ignorant
Copy link

ignorant commented May 11, 2022

Same problem occurred.
I am using a proxy.

Upgraded agent-base from 6.0.0 to 6.0.2 to fix the problem

@dbalakirev
Copy link

dbalakirev commented May 18, 2022

We also resorted to simply use the 1.6.1 version (based on an earlier version of node).

@gilvandovieira
Copy link

Windows 10
NVS 1.6.2
Node v18.0.0
npm 8.6.0

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
at new NodeError (node:internal/errors:371:5)
at new ClientRequest (node:_http_client:158:11)
at Object.request (node:https:353:10)
at RedirectableRequest._performRequest (C:\Users\user\AppData\Local\nvs\deps\node_modules\follow-redirects\index.js:241:24)
at new RedirectableRequest (C:\Users\user\AppData\Local\nvs\deps\node_modules\follow-redirects\index.js:60:8)
at Object.wrappedProtocol.request (C:\Users\user\AppData\Local\nvs\deps\node_modules\follow-redirects\index.js:431:14)
at Object.wrappedProtocol.get (C:\Users\user\AppData\Local\nvs\deps\node_modules\follow-redirects\index.js:436:37)
at C:\Users\user\AppData\Local\nvs\lib\list.js:351:3
at new Promise ()
at getNodejsRemoteVersionsAsync (C:\Users\user\AppData\Local\nvs\lib\list.js:350:9)

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

Successfully merging a pull request may close this issue.

6 participants