or Create a profile
28 Oct, 2013 03:53 PM
I've searched and found plenty of information on how to set proxy servers when performing "gem installs" but the proxy that I'm behind requires a specific user-agent string (or at least the addition of a specific string). When I run "gem install" without a proxy, I get a timeout error (which is expected). When running with the proxy, I get the below error (a 403 Forbidden is expected if I don't have the correct user agent string):
user@snort02:~$ gem install bundler -V -p http://#.#.#.#:8080
Error fetching remote data: bad response Forbidden 403 (http://rubygems.org/latest_specs.4.8.gz)
Falling back to local-only install
ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
connection reset after 2 requests, retrying
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Forbidden 403 (http://rubygems.org/latest_specs.4.8.gz)
Anyway, is there a way to specify a user-agent string for Gems? I'm running Ubuntu 13.10, for what it's worth. Thanks!
2 Posted by Nick Quaranto on 11 Nov, 2013 09:05 PM
Sounds like there's a firewall or proxy at work here. Is this
3 Posted by imjeeves on 11 Nov, 2013 09:13 PM
With all due respect, please read the post before replying. I very
explicitly say that there is a proxy involved and that I know that's part
of the issue. I'm asking if there is a way to specify a user-agent string
when doing an install.
4 Posted by Nick Quaranto on 11 Nov, 2013 09:43 PM
Oops, sorry. To my knowledge there is not a way to override it
without editing the rubygems source directly:
Sorry I can't help more with this.
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the RubyGems.org staff to resolve this discussion.
This discussion is private.
Only you and RubyGems.org support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.