-
Notifications
You must be signed in to change notification settings - Fork 84
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
Uncaught DNSServerError in call to _lookup_service
#469
Comments
We have code which catches DomainError and reraises. sydent/sydent/http/srvresolver.py Lines 141 to 157 in 8331f94
While looking into this I observed that this code is duplicated in Synapse, see matrix-org/matrix-python-common#2 . So it seems reasonable treat this as a library function whose behaviour is not to be altered. So let's look at the call stack instead to find a suitable place to catch the error.
|
matrixfederationagent also appears to be library ish (shared with Synapse); see matrix-org/matrix-python-common#3 |
https://sentry.matrix.org/sentry/sydent/issues/235982/?query=is%3Aunresolved
We got
Twisted docs say that anything in https://twistedmatrix.com/documents/current/api/twisted.names.error.html may be raised. In particular, the parent class
DomainError
. We could account for this case by catching DomainError too and returning an appropriate status code + response.The text was updated successfully, but these errors were encountered: