I’ve started running a few services on Sanic in production, and noticed an error raised by Sentry on many of these services.
The error reffers to a InvalidURLError raised being ‘sip:nm’. I suspect that somehow, a crawler might be sending an invalid HTTP Header causing Sanic to fail with this error, and Sentry to catch that error.
Here’s the error from Sentry, if that can help :
What I’m interested about is two things :
- What is happening exactly ? I can’t extract the reason from the log errors.
- How to avoid Sanic to throw these errors / or to Sentry to ignore these
I also got other errors that seems to come from Sanic that are unrelated to my code (but probably from a badly written crawler), such as :
Thank you for your input.