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.

Error: Invalid protocol: null

See original GitHub issue

Hi @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:closed
  • Created 7 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chill117commented, Jun 8, 2016

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:

  • You are setting the HTTP_PROXY and HTTPS_PROXY environment variables to your proxy, but then you are setting them equal to null later in the same code block. Since everything within ProxyLists is asynchronous, your code that sets the HTTP_PROXY and HTTPS_PROXY variables to null runs before any code within ProxyLists.
0reactions
cyclops24commented, Jun 8, 2016

@chill117 I close this issue man. Again thanks 😉

Read more comments on GitHub >

github_iconTop 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 >
npm ERR! Invalid protocol: null · Issue #12939 - GitHub
Try npm config set proxy null . 2
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 >

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