Bug#587172: github-cli: fails to list issues -- asks for authorization
Hello, On Fri, 25 Jun 2010 16:41:40 -0400, Yaroslav Halchenko wrote: $ ghi -r hanke/PyMVPA list | cat # open issues on hanke/PyMVPA error: server problem (HTTP Error 401: Unauthorized) with -w goes to webpage nicely in a browser Do you have a [github] section, with user and token, in your ~/.gitconfig ? In any case, it should show you: $ ghi -r yarikoptic/svgtune | cat # open issues on yarikoptic/svgtune error: required GitHub entry 'user' not found in global git config please add it to the global git config by doing this: git config --global github.user your GitHub username Otherwise, let's try to debug it. Add the following line: print repr(url), repr(data), repr(headers) at /usr/share/pyshared/github/utils.py , before line 26 (try:). Be sure to put four spaces before it. Then run again that command, it should show something like: 'http://github.com/api/v2/json/issues/list/user/project/open' 'login=logintoken=token' {'User-Agent': 'github-cli'} user/project should be what you passed on the command line; login and token should be the ones you have in your ~/.gitconfig. Remember not to post your token here (since that would allow anyone to do commits authenticated as you)! Kindly, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Bug#587172: github-cli: fails to list issues -- asks for authorization
severity 587172 wishlist title 587172 allow basic operations (e.g. list) without authentication thanks On Mon, 28 Jun 2010, David Paleino wrote: Do you have a [github] section, with user and token, in your ~/.gitconfig ? ... doh -- sorry about the mess and thanks for a thorough reply -- this was my screw up -- token I had was wrong -- I guess I've changed it after I've exposed my .gitconfig to the world but I've not adjusted .gitconfig with the new one ;) but since I usually do not use github's API, I've never mentioned that :-/ token should be the ones you have in your ~/.gitconfig. Remember not to post your token here (since that would allow anyone to do commits authenticated as you)! heh Retitling the bug now ;) Listing of issues is allowed without authentication as far as I can see. For instance if I use github's API module from Dustin and create non-authenticated connection: In [1]: from github import github In [2]: gh = github.GitHub() In [4]: gh.issues.list('dustin', 'py-github')[0].title Out[4]: u'Add/remove email addresses' With best regards -- .-. =-- /v\ = Keep in touch// \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User^^-^^[17] signature.asc Description: Digital signature
Bug#587172: github-cli: fails to list issues -- asks for authorization
Package: github-cli Version: 0.2.9-1 Severity: normal $ ghi -r hanke/PyMVPA list | cat # open issues on hanke/PyMVPA error: server problem (HTTP Error 401: Unauthorized) with -w goes to webpage nicely in a browser even on my own repository: $ ghi list | cat # open issues on yarikoptic/svgtune error: server problem (HTTP Error 401: Unauthorized) it might be that I am doing something wrong, but manpage doesn't hint in any ways on any aspect of authentication (and not sure why shoud I authenticate just to list or search) -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (901, 'unstable'), (900, 'testing'), (300, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages github-cli depends on: ii python2.6.5-5An interactive high-level object-o ii python-pkg-resources 0.6.10-4 Package Discovery and Resource Acc ii python-setuptools 0.6.10-4 Python Distutils Enhancements (set ii python-simplejson 2.1.1-1simple, fast, extensible JSON enco ii python-support1.0.8 automated rebuilding support for P github-cli recommends no packages. github-cli suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org