[rdo-dev] Fwd: unable to talk with rdo gerrit using api-key

Sorin Sbarnea ssbarnea at redhat.com
Mon Mar 18 18:19:33 UTC 2019

Based on RDO documentation, when talking with https://review.rdoproject.org/ Gerrit we are supposed to use the API key from https://review.rdoproject.org/sf/user_settings.html page.

Still, with my account this does not work and I always get 401 from Gerrit, even if I use HTTP Basic or Digest.

I tried using gertty and had to enable full debugging in order to see discover this.

gertty -d   --debug-sync  rdo


  - name: rdo
    url: https://review.rdoproject.org/r/
    username: ssbarnea
    password: "..."
    # from https://review.rdoproject.org/sf/user_settings.html
    git-root: ~/rdo/
    git-url: ssh://ssbarnea@review.rdoproject.org:29418
    dburi: sqlite:////Users/ssbarnea/.config/gertty/rdo.db
    auth-type: basic
    socket: ~/.config/gertty/rdo.sock
    log-file: ~/.config/gertty/rdo.log

Mainly what happens is:

2019-03-18 18:03:05,397 Starting new HTTPS connection (1): review.rdoproject.org:443
2019-03-18 18:03:06,081 https://review.rdoproject.org:443 "GET /r/a/config/server/version HTTP/1.1" 401 12
2019-03-18 18:03:06,082 HTTP status code: 401

This is not supposed to get a 401, and the same URL works from within the browser, but browser does not use same auth.

Any idea about what is wrong? -- I even used curl with the same results.

curl --user ssbarnea:xxx https://review.rdoproject.org/r/a/config/server/version


More information about the dev mailing list