Error: Invalid protocol: null
See original GitHub issueHi @chill117 ,
I try to fetch some proxy but it seems it return Error: Invalid protocol: null
error for many of proxy sources. Is it a bug or I use package in wrong way?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
How to correct Invalid Protocol: null sending mail using javax ...
I was getting this same error, and my problem was I forgot to include: props.put("mail.transport.protocol", "smtp");.
Read more >Node.js request module giving error for http call [Error - iTecNote
Node.js request module giving error for http call [Error: Invalid protocol: null] ... I am using request module for node.js to make HTTP...
Read more >Error :invalid protocol while installing phonegap - Ask Ubuntu
npm ERR! Error: Invalid protocol. will show when the proxy is not set to a full absolute URL. You need to do a...
Read more >'Invalid protocol' error - SUPPORT - RealPlayer
If you received this error message, check if you typed the URL correctly--including the http://, pnm://, or rtsp:// prefix--and try it again. If...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You must comment out these lines. Then it will work. You could move them to within the
'end'
event callback function and it will work as well.What is happening there:
HTTP_PROXY
andHTTPS_PROXY
environment variables to your proxy, but then you are setting them equal tonull
later in the same code block. Since everything withinProxyLists
is asynchronous, your code that sets theHTTP_PROXY
andHTTPS_PROXY
variables tonull
runs before any code withinProxyLists
.@chill117 I close this issue man. Again thanks 😉