-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account creation fails behind proxy server #25746
Comments
This is still a relevant issue for me as well 172.27.177.138 user1 - invalid_request DENIED "Technology/Internet" - 400 TCP_NC_MISS GET - https management.azure.com 443 /tenants ?api-version=2019-11-01 - "axios/1.6.2" xxx.xxx.xxx.xxx 1194 7683 - "none" "none" 4.150.241.10 2 |
Will this also be addressed by #26137 @lewis-sanchez? |
@andrewholler, it should be addressed by #26137 |
This succeeds with release 1.51.0! Thank you! |
Steps to Reproduce:
Cause:
When looking at the connections in Wireshark you can see the following request to the proxy server:
GET https://management.azure.com/tenants?api-version=2019-11-01 HTTP/1.1
This is a violation of the HTTP specification in RFC 7230: To fetch an object via HTTPS through an HTTP proxy, the CONNECT method must be used. The correct syntax is:
There are countless bug reports in the issue tracker of Axios (eg axios/axios#4531) about this behavior.
Possible workarounds:
Delete the https_proxy and HTTPS_PROXY environment variables and keep only http_proxy OR HTTP_PROXY. Then Axios (at least in the currently used version 1.6.2) will create correct HTTPS proxy requests.
If you need the environment variables for other applications under the same user account, you can dynamically remove them before starting ADS in a batch file:
Possible solutions:
The text was updated successfully, but these errors were encountered: