Hi!
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 :
https://sentry.io/share/issue/027be04b25fb4787a4cff00ad0647121/
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 :
InvalidUsage (Bad Request) : Sentry
Another Invalid Url Error : Sentry
RequestTimeout : Sentry (Not much details on this one, but got a lot of these)
Thank you for your input.