# Errno::EBADF Bad file descriptor - connect(2)

**URL:** <https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/136141>\
**Category:** Rails\
**Created:** [April 29, 2008, 10:48am UTC](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/136141 "2008-04-29T10:48:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [April 29, 2008, 10:48am UTC](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/136141/1 "2008-04-29T10:48:35Z")

</div>

hi,

my application was working fine till the day before yesterday. but  
its not working since yesterday suddenly, don’t know why. some pages are  
visible but where i’m posting something, those pages show the  
“Errno::EBADF Bad file descriptor - connect(2)” error.i’m also using  
net/http. can anybody help me in this? i’m using rails 1.2.6 on winXP.  
thanks in advance.

-Dhaval

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [April 29, 2008, 11:08am UTC](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/136141/2 "2008-04-29T11:08:28Z")

</div>

at what file this case is stoped? I mean i need to see complete error  
log.

or you can go here :

> **[Ruby at Work - Internet access through a Proxy Server](http://swtester.blogspot.com/2006/08/ruby-at-work-internet-access-through.html)**
>
> While reviewing Brian Marick's book "Scripting for Testers" (due out later this year or early next), I discovered that some of the internet ...

It seems like your proxy in trouble.

or you can re install your rails  
gem install rails --source [http://gems.rubyonrails.org](http://gems.rubyonrails.org)  
–include-dependencies

Good Luck  
Reinhart  
[http://teapoci.blogspot.com](http://teapoci.blogspot.com)  
“Object Oriented Antioxide”

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [April 29, 2008, 11:19am UTC](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/136141/3 "2008-04-29T11:19:34Z")

</div>

hi,  
thanks for the quickest reply Reinhart, i found the cause for this  
prb just after few minutes i posted this and i was about to reply to my  
own post :D. thr was a link hard coded in a file which was pointing to a  
dead end. i just changed that and the appl started working fine again.  
Thanks anyways… 🙂

-Dhaval
