# Error when specifying proxy

**URL:** <https://www.ruby-forum.com/t/error-when-specifying-proxy/87898>\
**Category:** Ruby\
**Created:** [March 6, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/error-when-specifying-proxy/87898 "2007-03-06T18:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Behrang\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@Behrang\_S](https://www.ruby-forum.com/u/Behrang_S)\
**Post date:** [March 6, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/error-when-specifying-proxy/87898/1 "2007-03-06T18:21:59Z")

</div>

Hi,

When I set the HTTP\_PROXY env var to  
user:pass@[http://proxy.monash.edu.au:8080](http://proxy.monash.edu.au:8080) and run gem to install  
Rials, I get the following error:

C:\Documents and Settings\Behrang\>gem install rails --remote  
ERROR: While executing gem … (URI::InvalidURIError)  
can not set user with registry or opaque

Any ideas what is probably causing the error and how can I fix it?  
(The environment is Win XP)

Regards,  
Behi

–  
“Science is a differential equation. Religion is a boundary condition”

- Alan Turing

Behrang S.

> **[Best Online Casino in Australia | Top Licensed Casinos for Gamblers](https://toponlinecasinoaustralia.com)**
>
> Best Online Casino in Australia with licensed games only. Play blackjack, roulette, poker and other top-notch casino games. Enjoy gambling 24/7.

> **[Opera News](https://blogs.opera.com/news/)**
>
> The latest news about Opera web browsers, tech trends, internet tips.

---

<div class="post-metadata">

**Author:** ![Behrang\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@Behrang\_S](https://www.ruby-forum.com/u/Behrang_S)\
**Post date:** [March 6, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/error-when-specifying-proxy/87898/2 "2007-03-06T18:45:01Z")

</div>

Behrang S. wrote:

> Any ideas what is probably causing the error and how can I fix it?  
> (The environment is Win XP)

It should be

[http://user:removed\_email\_address@domain.invalid:8080](http://user:removed_email_address@domain.invalid:8080)

if I remember correctly

You can also set this up in your .gemrc-file
