fix: Handle exceptions raised when fetching Django request data#758
Conversation
|
Hi, I have tested this on the App Engine app that was showing errors, and I no longer see the errors. Which is a good thing. I'm not sure that my fix of catching any Also I figured setting |
6899d60 to
4675a4d
Compare
e99d194 to
ab1bc52
Compare
The Django helper calls `request.build_absolute_uri()`, but that may raise a DisallowedHost exception itself. Instead we catch any exception and log `None` as the URL.
ab1bc52 to
5b4c719
Compare
daniel-sanche
left a comment
There was a problem hiding this comment.
Thanks for putting this together!
The Django helper calls
request.build_absolute_uri(), but that may raise a DisallowedHost exception itself. Instead we catch any exception and logNoneas the URL.Fixes #757