Hi, everyone,

I just installed osc on openSUSE 10.3; the first run asked me for my
username/password, so I gave it what I use for the openSUSE wiki and
bugzilla.novell.com.

However, it doesn't want to authenticate :(  I turned on http_debug in
the config file.  Attached is what osc prints.

Does anyone know what may be wrong?

[I just built my first package with the build service's web interface
--- it's *really* nice!]

Thanks in advance,

  Federico
champignon$ osc -H ls home:federico-mena


-- GET https://api.opensuse.org/source/home:federico-mena
send: 'GET /source/home:federico-mena HTTP/1.1\r\nAccept-Encoding: 
identity\r\nHost: api.opensuse.org\r\nConnection: close\r\nUser-Agent: 
osc/0.98\r\n\r\n'
reply: 'HTTP/1.1 401 Unauthorized\r\n'
header: Content-Type: text/html; charset=utf-8
header: Content-Length: 2917
header: Pragma: no-cache
header: WWW-Authenticate: Basic realm="iChain"
header: Connection: close
send: 'GET /source/home:federico-mena HTTP/1.1\r\nAccept-Encoding: 
identity\r\nHost: api.opensuse.org\r\nConnection: close\r\nAuthorization: Basic 
ZmVkZXJpY28tbWVuYTpiMWNoMHNiMWNoMHM=\r\nUser-Agent: osc/0.98\r\n\r\n'
reply: 'HTTP/1.1 401 Unauthorized\r\n'
header: Content-Type: text/html; charset=utf-8
header: Content-Length: 2917
header: Pragma: no-cache
header: WWW-Authenticate: Basic realm="iChain"
header: Connection: close
Traceback (most recent call last):
  File "/usr/bin/osc", line 10, in <module>
    sys.exit( osc.main() )
  File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 256, in main
    return self.cmd(args)
  File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 279, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 395, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 1070, in 
_dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/python2.5/site-packages/osc/commandline.py", line 149, in 
do_list
    print '\n'.join(meta_get_packagelist(conf.config['apiurl'], project))
  File "/usr/lib/python2.5/site-packages/osc/core.py", line 887, in 
meta_get_packagelist
    f = http_GET(u)
  File "/usr/lib/python2.5/site-packages/osc/core.py", line 805, in http_GET
    def http_GET(*args, **kwargs):    return http_request('GET', *args, 
**kwargs)
  File "/usr/lib/python2.5/site-packages/osc/core.py", line 796, in http_request
    fd = urllib2.urlopen(req, data=data)
  File "/usr/lib/python2.5/urllib2.py", line 121, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 380, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 491, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 412, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 816, in http_error_401
    url, req, headers)
  File "/usr/lib/python2.5/urllib2.py", line 794, in http_error_auth_reqed
    return self.retry_http_basic_auth(host, req, realm)
  File "/usr/lib/python2.5/urllib2.py", line 804, in retry_http_basic_auth
    return self.parent.open(req)
  File "/usr/lib/python2.5/urllib2.py", line 380, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 491, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 418, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 499, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized

Reply via email to