Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make better_errors work when env["REMOTE_ADDR"] is empty #143

Merged
merged 1 commit into from
Aug 2, 2013
Merged

Make better_errors work when env["REMOTE_ADDR"] is empty #143

merged 1 commit into from
Aug 2, 2013

Conversation

tetherit
Copy link
Contributor

Puma, when used behind a reverse proxy sets an empty env["REMOTE_ADDR"] and this make better_errors throw a nasty exception on every page and basically stops your rails app from working. Details in issue #125. This 1 line fixes it.

@tetherit
Copy link
Contributor Author

+1

@edwinv
Copy link

edwinv commented Jun 3, 2013

I'm experiencing the same issue with the Puma webserver. Fix of @Hackeron works for me, merge into master would be appreciated!

@sirwolfgang
Copy link

I am running into this issue. It seems less to do with the useage of puma as a webserver, but nginx as your reverse proxy. That said, I would like to see a solution merged into master.

@disposable-ksa98
Copy link

Same issue here

haileys pushed a commit that referenced this pull request Aug 2, 2013
Make better_errors work when env["REMOTE_ADDR"] is empty
@haileys haileys merged commit cc4f9f5 into BetterErrors:master Aug 2, 2013
haileys pushed a commit that referenced this pull request Aug 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants