Closed samuel-jimenez closed 7 months ago
The errors are created inside the Requests library, a third party product. The message "Name or service not known" indicates a DNS resolver problem, not the inability to create a connection. If this happens to you often, maybe try using different resolvers? In case you do want to suppress those errors being logged, which I do not recommend, you can try setting log_level = FATAL
in your config file.
On April 10, 2024 9:39:50 PM UTC, Ralph Seichter @.***> wrote:
The errors are created inside the Requests library, a third party product. The message "Name or service not known" indicates a DNS resolver problem, not the inability to create a connection. If this happens to you often, maybe try using different resolvers? In case you do want to suppress those errors being logged, which I do not recommend, you can try setting
log_level = FATAL
in your config file.
It might be useful to catch the exception and make a clearer error message along these lines, so people know what to do.
Scott K
@kitterma I am not a fan of catching and re-interpreting other software components' exceptions. Among other disadvantages, it makes it harder to look up the original error messages on the Internet. It doesn't help people if they have to go through me to find more information.
On April 10, 2024 10:16:10 PM UTC, Ralph Seichter @.***> wrote:
@kitterma I am not a fan of catching and re-interpreting other software components' exceptions. Among other disadvantages, it makes it harder to look up the original error messages on the Internet. It doesn't help people if they have to go through me to find more information.
I understand the point, but particularly for applications (vice libraries), you can often add enough context for it to be worthwhile. Clearly, in this case, the native error was not enough.
It was enough for silly old me. 😉 Also, if you have a look at the three exceptions raised in the traceback shown above, they are too generic to interpret programmatically. It takes a human to do that.
When a connection fails, the following appears in the logs for each failed item.
Could this be made less spammy?