Node js Error: Protocol "https:" not supported. Expected "http:"

When you want to request an https resource, you need to use https.get, not http.get.

https://nodejs.org/api/https.html


As a side note to anyone looking for a solution from Google... make sure you are not using an http.Agent with an https request or you will get this error.