-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Issue with 4.2.0 -> IPAddr::AddressFamilyError: address family must be specified #1274
Closed
johnernaut opened this issue
Feb 5, 2021
· 2 comments
· Fixed by #1288 or communitiesuk/epb-register-api#78
Closed
Issue with 4.2.0 -> IPAddr::AddressFamilyError: address family must be specified #1274
johnernaut opened this issue
Feb 5, 2021
· 2 comments
· Fixed by #1288 or communitiesuk/epb-register-api#78
Comments
Should related to the mentioned trusted_proxies. Trying in a rails console:
leads to this issue
|
|
gagalago
added a commit
to sortlist/sentry-ruby
that referenced
this issue
Feb 15, 2021
fix getsentry#1274 `IPAddr.new` only accept the address as a string but not as an `IPAddr` as suggested in the Rails documentation https://api.rubyonrails.org/classes/ActionDispatch/RemoteIp.html
This was referenced Feb 15, 2021
st0012
pushed a commit
that referenced
this issue
Feb 16, 2021
* always convert trusted proxies to string fix #1274 `IPAddr.new` only accept the address as a string but not as an `IPAddr` as suggested in the Rails documentation https://api.rubyonrails.org/classes/ActionDispatch/RemoteIp.html * remove railtie fix * add test for IPAddr trusted proxies * convert proxy ip to string before IPAddr * update changelog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running our application in production (via ECS and Fargate), we're seeing an application error which causes the process to die immediately. Here's an example taken from the logs:
This issue seems to stem from this line: https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/utils/real_ip.rb#L32
It's worth noting that we have
trusted_proxies
configured within our Rails app:I tried to set the
trusted_proxies
configuration to the above array in theSentry.init
block in the initializer myself but the result was the same.Environment
SentryConfig
The text was updated successfully, but these errors were encountered: