-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(node): Check for invalid url in node transport #6623
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
Conversation
If the tunnel option will cause an error to be thrown, catch it, and re-throw with a better error message. Fixes getsentryGH-6381
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the PR! I left some comments on how we can integrate this change into the project so it aligns with our vision.
Could you let me know if you have the time to implement it? Otherwise, I will put it into our backlog.
440f7ac
to
b20f95a
Compare
- Use `console.warn` instead of `logger.warn` - Do not re-throw the error
b20f95a
to
034fd7b
Compare
After looking at what you wrote here,
I realized that the logic best lives in the node transport. I moved it there and added some tests. Sorry to stomp on your work like that but thank you very much for doing the foundational work and figuring everything out!! |
@Naddiseo Thank you for your contribution! |
No worries! I did think it belonged in node-transport, but saw that |
If the tunnel option will cause an error to be thrown, catch it, and give a warning.
Fixes GH-6381
Before submitting a pull request, please take a look at our
Contributing guidelines and verify:
yarn lint
) & (yarn test
).