Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using REST APIs

Tags:

gerrit

I am new to gerrit. I am using gerrit V. 2.6 . I want to use gerrit REST APIs in my python script. But not able to figure out how to use it. I tried below code but getting errors.

curl --digest --user user:password http://server/a/changes/path/to/project~branch~change_id/rebase

getting error :

401 Authorization Required

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Am I missing something.??

like image 855
mrutyunjay Avatar asked Feb 04 '14 05:02

mrutyunjay


1 Answers

Are you using the correct username:password combination? This isn't your network password - it is the HTTP password that gerrit generates. You can find it by going to Settings->HTTP Password. If the password box is blank, click the button to have Gerrit generate a new password.

like image 190
Brad Avatar answered Nov 03 '22 00:11

Brad