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

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:" with node-downloader-helper #106

Open
vamsideepak opened this issue Jul 20, 2023 · 1 comment

Comments

@vamsideepak
Copy link

Getting the below issue when I am trying to download files using node-downloader-helper
I am using node 16.16.0 and 18.14.0 by using nvm and also tried by downloading the node manually instead of nvm still no luck. my npm version 8.3.0, node-downloader-helper versions tried 1.0.13 and 2.1.4.

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:399:5)
    at new ClientRequest (node:_http_client:189:11)
    at Object.request (node:http:98:10)
    at b.d 
    
    (C:\Users\XXXX\Desktop\MockServer\Trilogy_Client_Installer\workers\node_modules\node-downloader-helper\dist\index.js:1:6742)
    at b.a (C:\Users\XXXX\Desktop\MockServer\Trilogy_Client_Installer\workers\node_modules\node-downloader-helper\dist\index.js:1:6164)
@hgouveia
Copy link
Owner

hgouveia commented Jul 20, 2023

Hello @vamsideepak could you tried the latest version 2.1.8 and let me know?

if the latest version is not fixed, would be possible to you to share the URL that is causing this issue? it seems to me that you are using a http url, but is been redirected to https, if that the case, you could try just use https from the beginning, although every time a redirect is happening, we restart the protocol so it should covers this cases

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

2 participants