# Ruby Gems and the Mysterious 403 Error

**URL:** <https://www.ruby-forum.com/t/ruby-gems-and-the-mysterious-403-error/98694>\
**Category:** Ruby\
**Created:** [July 17, 2006, 4:56pm UTC](https://www.ruby-forum.com/t/ruby-gems-and-the-mysterious-403-error/98694 "2006-07-17T16:56:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek\_Perrault](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f9ae1b/32.png) [@Derek\_Perrault](https://www.ruby-forum.com/u/Derek_Perrault)\
**Post date:** [July 17, 2006, 4:56pm UTC](https://www.ruby-forum.com/t/ruby-gems-and-the-mysterious-403-error/98694/1 "2006-07-17T16:56:02Z")

</div>

Hello all.

When I attempt to install any remote gem, I get the following error:

ERROR: While executing gem … (OpenURI::HTTPError)  
403 Forbidden

I first noticed this a couple weeks ago.

This is a Windows XP system.  
I am going through a proxy server.  
I can list and search through the remote gems. The error only occurs  
when I  
attempt to install a gem.

Thank you in advance for your help.

Derek

---

<div class="post-metadata">

**Author:** ![Derek\_Perrault](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f9ae1b/32.png) [@Derek\_Perrault](https://www.ruby-forum.com/u/Derek_Perrault)\
**Post date:** [July 17, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/ruby-gems-and-the-mysterious-403-error/98694/2 "2006-07-17T17:22:21Z")

</div>

Le 17 juil. 06 Ã 16:53, Derek Perrault a Ã©crit :

> ERROR: While executing gem … (OpenURI::HTTPError)  
> 403 Forbidden
> 
> I first noticed this a couple weeks ago.
> 
> This is a Windows XP system.  
> I am going through a proxy server.  
> I can list and search through the remote gems. The error only  
> occurs when I  
> attempt to install a gem.

i didn’t have exactly the same prob nor make use of win\* however, in  
my case removing the gems cache did the trick.

it is located in GEM\_HOME :

~%\> ls $GEM\_HOME  
cache doc gems source\_cache  
specifications

~%\> ls $GEM\_HOME/cache  
cmdparse-2.0.2.gem

hope that’s help 😉

---

<div class="post-metadata">

**Author:** ![Derek\_Perrault](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f9ae1b/32.png) [@Derek\_Perrault](https://www.ruby-forum.com/u/Derek_Perrault)\
**Post date:** [July 17, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/ruby-gems-and-the-mysterious-403-error/98694/3 "2006-07-17T20:30:23Z")

</div>

Hmm… no such luck. Thank you for the suggestion, though.
