---
title: "Frequent SystemExit in Ruby when making HTTP calls"  
description: "Frequent SystemExit in Ruby when making HTTP calls"  
author: "Anonymous User"  
published: 2014-12-28  
updated: 2014-12-28  
canonical: https://www.mindstick.com/forum/12822/frequent-systemexit-in-ruby-when-making-http-calls  
category: "ruby on rails"  
tags: ["ruby on rails", "ruby"]  
reading_time: 1 minute  

---

# Frequent SystemExit in Ruby when making HTTP calls

I have a [Ruby on Rails](https://www.mindstick.com/forum/12824/create-a-new-ruby-on-rails-application-using-mysql-instead-of-sqlite) [Website](https://www.mindstick.com/articles/13110/why-copywriting-is-crucial-for-new-website-build) that makes HTTP calls to an [external](https://www.mindstick.com/articles/12810/how-to-connect-tablet-to-external-monitor-or-flat-screen-tv-using-computer-adapters) [Web Service](https://www.mindstick.com/articles/895/web-service-introduction).\
About once a day I get a SystemExit (stacktrace below) error email where a call to the service has failed. If I then try the exact same query on my site [moments](https://yourviews.mindstick.com/story/1393/top-moments-from-history) later it [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why). It's been happening since the site went live and I've had no luck tracking down what causes it.\
Ruby is [version](https://www.mindstick.com/articles/12845/things-to-remember-while-migrating-odoo-to-a-better-version) 1.8.6 and rails is version 1.2.6.\
Anyone else have this [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic)?\
This is the error and stacktrace.\
A SystemExit occurred/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/fcgi_handler.rb:116:in `exit'/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/fcgi_handler.rb:116:in `exit_now_handler'/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in `to_proc'/usr/local/lib/ruby/1.8/net/protocol.rb:133:in `call'/usr/local/lib/ruby/1.8/net/protocol.rb:133:in `sysread'/usr/local/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'/usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout'/usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout'/usr/local/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'/usr/local/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'/usr/local/lib/ruby/1.8/net/protocol.rb:126:in `readline'/usr/local/lib/ruby/1.8/net/http.rb:2017:in `read_status_line'/usr/local/lib/ruby/1.8/net/http.rb:2006:in `read_new'/usr/local/lib/ruby/1.8/net/http.rb:1047:in `[request](https://www.mindstick.com/blog/255/post-get-and-request-function-in-php)'/usr/local/lib/ruby/1.8/net/http.rb:945:in `request_get'/usr/local/lib/ruby/1.8/net/http.rb:380:in `get_response'/usr/local/lib/ruby/1.8/net/http.rb:543:in `start'/usr/local/lib/ruby/1.8/net/http.rb:379:in `get_response'

## Replies

### Reply by Anonymous User

Using fcgi with Ruby is known to be very buggy.

Practically everybody has moved to Mongrel for this reason, and I recommend you do the same.


---

Original Source: https://www.mindstick.com/forum/12822/frequent-systemexit-in-ruby-when-making-http-calls

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
