title: node curl error "Received HTTP code 503 from proxy after CONNECT"
body: <p>I get a JWT token after authenticating on an API with a POST req.</p>
  <p>With that token, I can make a successful <code>curl</code> call from my command prompt:</p>
  <p><code>curl --request GET https://corpURL/customer/wlsAccountManagement/v1/billingAccount/23435657 --header &quot;env: it04&quot; --header &quot;Authorization: Bearer tokenstring...&quot;</code></p>
  <p>But when I try to exec this in node, it fails with <code>Received HTTP code 503 from proxy after CONNECT</code>.</p>
  <p>I even tried a basic curl in the command prompt and it works:</p>
  <p><code>curl -v https://corpURL/customer/wlsAccountManagement/v1/billingAccount/23435657</code></p>
  <p>It just tells me I am unauthorized <code>{&quot;message&quot;:&quot;Unauthorized&quot;}</code>, which is correct.</p>
  <p>In node, I can't even get the <code>{&quot;message&quot;:&quot;Unauthorized&quot;}</code>, it still gives me <code>Received HTTP code 503 from proxy after CONNECT</code>.</p>
  <p>The reason I'm using curl is because I can see more info. Using <code>axios</code> it gives me a <code>&quot;socket hang up&quot;</code> error.</p>
  <p>I have been trying to get this to work and searching online for a solution for over a day. Does anyone have any idea what's going on here? Why does it work in the command prompt but not in node? Thanks!</p>