Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soliverr opened this issue Aug 15, 2014 · 0 comments
Open

Comments

@soliverr
Copy link

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 added a commit to soliverr/github-gem that referenced this issue Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant