sailpoint-oss / typescript-sdk

MIT License
9 stars 6 forks source link

Unable to get access token when HTTPS_PROXY is configured due to longstanding Axios bug #20

Open johnhatch14 opened 1 year ago

johnhatch14 commented 1 year ago

Due to an unresolved issue with Axios not supporting HTTPS requests proxied over a HTTP proxy URL defined by HTTPS_PROXY (https://github.com/axios/axios/issues/4531), the Configuration.getAccessToken(url) method results in a 400 Bad Request response when the HTTPS_PROXY environment variable is set.

I recommend using proxy-agent as suggested with https://github.com/axios/axios/issues/4531#issuecomment-1608140085 to resolve this until Axios's custom proxy handling code is fixed.