cosmin/stashy

Can't connect to BitBucket server

Joshy3214 opened this issue · 0 comments

When I try to connect to my company Bitbucket server, I get errors with Stashy

import stashy

bitbucket = stashy.connect("company_bitbucket_url", "username", "password", verify=False)
projects = bitbucket.projects.list()
repos = bitbucket.repos.list()

for project in projects:
for repo in bitbucket.projects["%s" % (project["key"])].repos.list():
print(repo["name"])
print(repo["project"]['key'])

Errors are :

File "/usr/lib/python3.6/http/client.py", line 289, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

File "/local/localadmin/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='***', port=443): Max retries exceeded with url: /rest/api/1.0/projects (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))

I didn't find enough data on these errors.