0
>>> # Get all projects viewable by anonymous users.

... projects = jira.projects()

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "C:\Python27\lib\site-packages\jira_python-0.16-py2.7.egg\jira\client.py", line 941, in projects
    r_json = self._get_json('project')
  File "C:\Python27\lib\site-packages\jira_python-0.16-py2.7.egg\jira\client.py", line 1526, in _get_json
    r = self._session.get(url, params=params, headers=self._options['headers'])
  File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\sessions.py", line 395, in get
    return self.request('GET', url, **kwargs)
  File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\sessions.py", line 383, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\sessions.py", line 486, in send
    r = adapter.send(request, **kwargs)
  File "C:\Python27\lib\site-packages\requests-2.2.1-py2.7.egg\requests\adapters.py", line 381, in send
    raise ProxyError(e)
**requests.exceptions.ProxyError: Cannot connect to proxy. Socket error: Tunnel connection failed: 407 authenticationrequired.**

Can you please any one help me how to solve this issue.

vaultah
  • 44,105
  • 12
  • 114
  • 143
Karthi
  • 1
  • 3

1 Answers1

1

Try This:

basic_auth = ('username', 'password')
options = {
    'server': <server url>,
    'proxies' : <proxy>,
    'verify' : False,
} 
jira = JIRA(options,basic_auth=basic_auth,validate=True)

should work.
I tried and it is working for me.
Make sure you have access to the project to acess the issue.

Srikanth K
  • 11
  • 1