Skip to content
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

ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 authentication required',)) #1063

Closed
erlisb opened this issue Jan 28, 2020 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@erlisb
Copy link

erlisb commented Jan 28, 2020

What happened (please include outputs or screenshots):
I am trying to use proxy in the kubernetes framework but I get the following error :

 urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='lcageanaksd-1dffcee1.hcp.westeurope.azmk8s.io', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 authentication
required',)))

What you expected to happen:
Here I suppose I would get the list of nodes.

How to reproduce it (as minimally and precisely as possible):

    self.client_config = Configuration()
    self.client_config.debug = False
    self.client_config.verify_ssl = ssl
    self.client_config.assert_hostname = False
    self.client_config.host = url
    self.client_config.proxy = proxy_url
    self.client_config.debug = True
    self.client_config.api_key.update({'Authorization': 'Bearer {}'.format(TOKEN)})
    ApiClient = client.ApiClient(self.client_config)
    v1 = client.CoreV1Api(ApiClient)
   v1.list_node()

Anything else we need to know?:

Environment:
Kubernetes Client Version: v1.11.0+d4cacc0
AKS Kubernetes Server Version: v1.12.7
Python 2.7.15rc1

@erlisb erlisb added the kind/bug Categorizes issue or PR as related to a bug. label Jan 28, 2020
@roycaihw
Copy link
Member

roycaihw commented Mar 9, 2020

You need to pass in proxy headers to properly use the proxy manager. Ref #779, OpenAPITools/openapi-generator#2467

This should be fixed in the upcoming 12.0.0a1 release where we upgrade to a newer version of openapi-generator. You can apply the fix locally as a workaround

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 7, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 7, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants