github-gem icon indicating copy to clipboard operation
github-gem copied to clipboard

remote 'origin' is not a github URL and open_http': Non-HTTP proxy URI

Open soliverr opened this issue 10 years ago • 0 comments

I have an error:

gh issues open
Error: remote 'origin' is not a github URL

My repository is

git remote -v
origin  https://[email protected]/soliverr/bash-prompt.git (fetch)
origin  https://[email protected]/soliverr/bash-prompt.git (push)

I change in lib/commands/helpers.rb function :user_and_repo_from as follow

 - when %r|^https?://github\.com/([^/]+/[^/]+)$| then $1.split('/')
 + when %r|^https?://.+@?github\.com/([^/]+/[^/]+)$| then $1.split('/')

And now I got error:

/usr/lib/ruby/1.9.1/open-uri.rb:249:in `open_http': Non-HTTP proxy URI: https://localhost:3128/ (RuntimeError)
from /usr/lib/ruby/1.9.1/open-uri.rb:775:in `buffer_open'
from /usr/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
from /usr/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
from /usr/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
from /usr/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
from /usr/lib/ruby/1.9.1/open-uri.rb:677:in `open'
from /usr/lib/ruby/1.9.1/open-uri.rb:33:in `open'
from /var/lib/gems/1.9.1/gems/github-0.7.2/lib/commands/issues.rb:10:in `block in load'
from /var/lib/gems/1.9.1/gems/github-0.7.2/lib/github/command.rb:25:in `call'
from /var/lib/gems/1.9.1/gems/github-0.7.2/lib/github.rb:76:in `invoke'
from /var/lib/gems/1.9.1/gems/github-0.7.2/lib/github.rb:70:in `activate'
from /var/lib/gems/1.9.1/gems/github-0.7.2/bin/gh:8:in `<top (required)>'
from /usr/local/bin/gh:23:in `load'
from /usr/local/bin/gh:23:in `<main>'

My environment settings for proxy

$ set | grep proxy
ftp_proxy=ftp://localhost:3128/
http_proxy=http://localhost:3128/
https_proxy=https://localhost:3128/

soliverr avatar Aug 15 '14 12:08 soliverr