question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fail to install because of `https`

See original GitHub issue

I try to install CRA for neovim, but it raise an error like:

[coc.nvim] Download rust-analyzer failed, you can get it from https://github.com/rust-analyzer/rust-analyzer

There is the output of :CocOpenLog:

2021-05-26T00:23:27.419 INFO (pid:415980) [plugin] - coc.nvim 0.0.80-998c7d8034 initialized with node: v15.14.0 after 1065ms
2021-05-26T00:23:28.728 ERROR (pid:415980) [extension:coc-rust-analyzer] - TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:329:5)
    at new ClientRequest (node:_http_client:171:11)
    at request (node:https:333:10)
    at /home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:7854:17
    at new Promise (<anonymous>)
    at fetch (/home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:7830:10)
    at getLatestRelease (/home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:8056:26)
    at Object.activate (/home/peterlits/.config/coc/extensions/node_modules/coc-rust-analyzer/lib/index.js:9046:30)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at async Object.activate (/home/peterlits/.config/nvim/plugged/coc.nvim/build/index.js:223:1305) {
  code: 'ERR_INVALID_PROTOCOL'
}
2021-05-26T00:23:38.136 INFO (pid:415980) [attach] - receive notification: highlight []
2021-05-26T00:23:42.115 INFO (pid:415980) [attach] - receive request: CocAutocmd [ 'BufWritePre', 1 ]
2021-05-26T00:23:46.163 INFO (pid:415980) [attach] - receive notification: highlight []
2021-05-26T00:24:00.806 INFO (pid:415980) [attach] - receive notification: openLog []

It tell me that https is not supported. Do I need to install something in node.js or something else?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cairijuncommented, May 31, 2021

Just hit the same ERR_INVALID_PROTOCOL issue and I found these: https://github.com/TooTallNate/node-https-proxy-agent/issues/115 and https://github.com/TooTallNate/node-agent-base/pull/47 It seems agent-base needs to be upgraded.

0reactions
PeterlitsZocommented, Jun 2, 2021

Just hit the same ERR_INVALID_PROTOCOL issue and I found these: TooTallNate/node-https-proxy-agent#115 and TooTallNate/node-agent-base#47 It seems agent-base needs to be upgraded.

Thanks because it is really useful! I do not install rust-analyzer because I am lazy… But after the owner fix it, I remove the related part in :CocConfig, run :CocUpdate, ans reopen /tmp/tmp.rs. It finally works well!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install fails with "connection error: [SSL - Stack Overflow
For me, it came out that my date and time was misconfigured on Raspberry Pi. The result was that all SSL and HTTPS...
Read more >
September 2022 Cumulative Security Update fails to install ...
Windows 10's latest update appears to be failing to install for some folks, and is purportedly causing serious trouble for a handful of...
Read more >
Fix problems installing Chrome - Google Chrome Help
If you get an error message when you try to download and install Google Chrome, try these fixes. Fix most installation errors.
Read more >
How to Fix “Google Chrome Installer Failed to Start” Error in ...
Fix Installation failed. The Google Chrome Installer Failed to Start,Facebook Page : https ://www.facebook.com/MeMJTubeFollow on twitter: ...
Read more >
“Unable to install. A required install component is missing or ...
Before applying any updates, check whether the main version of the software you are trying to install is already installed in the system....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found