hi all:
my version is 2.14.6 and can't upgrade it,now i wan't login it by python and do other operations,but i can't login with python module like requests,pygerrit2 and python-gerrit-api
i try to with scripts :
1.
from pygerrit2 import GerritRestAPI,HTTPBasicAuth
auth=HTTPBasicAuth(user,passwd)
2.
from gerrit import GerritClient
client = GerritClient(base_url="http://mygerrit:8090", username='******', password='xxxxx') 3.
import requests
data={'username':xxx,'password':xxx}
all of them has same error info:
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:
somebody told version 2.14 has anther auth way,so who know how to login success,please let me know ,thanks very much.