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

fix: Prevent exception when IP address is 192.168.x.x #27318

Closed
wants to merge 1 commit into from

Conversation

danielbachhuber
Copy link
Contributor

Changes

Avoids an exception when the IP address is 192.168.x.x. I'm sending in some events locally using a script.

How did you test this code?

Tests should pass.

@neilkakkar
Copy link
Contributor

what happens when the exception is raised? It should get caught in the flow somewhere

@danielbachhuber
Copy link
Contributor Author

what happens when the exception is raised? It should get caught in the flow somewhere

@neilkakkar I just saw it in the logs while I was debugging why event definition creation wasn't happening. It may break event definition creation for this edge case but I don't know enough about how that system works yet to properly evaluate.

@neilkakkar
Copy link
Contributor

I don't think this has anything to do with event definitions 🤔 , different code paths.

This function logs exceptions without raising them, so I think that's what you saw, vs the raised exception itself. I don't think its worth adding any exceptions here, I'd rather this gets logged so we're aware of what's coming in for ip resolution. It's an issue if this is happening in production (because say maybe ip resolving isn't working correctly due to a proxy/whatever)

@danielbachhuber
Copy link
Contributor Author

I don't think its worth adding any exceptions here, I'd rather this gets logged so we're aware of what's coming in for ip resolution

@neilkakkar Sounds good 👍

@danielbachhuber danielbachhuber deleted the skip-local-ip-v2 branch January 8, 2025 21:28
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.

2 participants