Error 324 (net::ERR_EMPTY_RESPONSE) – Ruby on Rails

I managed to break my app again while playing around with the routes and a few redirects:

No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

 

This wasn’t one I had encountered before and unfortunately Google couldn’t give me anything to cheat off. Luckily, a quick review of the server log revealed the following message just before it closed the connection:

[2011-12-03 21:09:05] ERROR URI::InvalidURIError: the scheme http does not accept registry part: 192.168.1.3:3000locations (or bad hostname?)

 

From this error message it became clear that I needed to place a forward slash before my redirect path:

#Redirect to edit location path      
redirect_to '/locations/edit'

 

Hopefully this’ll be able to help someone else out there, Good Luck!


Posted

in

, ,

by

Comments

8 responses to “Error 324 (net::ERR_EMPTY_RESPONSE) – Ruby on Rails”

  1. Tom Avatar
    Tom

    Hi,
    Helped me alot!! Thanks!
    Tom

    Like

    1. Errors Avatar
      Errors

      No worries Tom, thanks for the feedback

      Like

  2. semih Avatar
    semih

    thanks bro 🙂

    Like

    1. Errors Avatar
      Errors

      No worries!

      Like

  3. Dave Avatar
    Dave

    Thanks, I also had the same issue and this fixed it!! I do think that people using Firefox will not find this. I had tested my project in chrome and used chromes error message. Firefox didn’t give me anything specific. Anyway, thanks a lot!

    Like

  4. Johannes Rubenz (@j_rubenz) Avatar

    Thanks, just what I needed!

    Like

  5.  Avatar
    Anonymous

    Helped. Thanks. 🙂

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

%d bloggers like this: