Closed BobbyRadford closed 2 years ago
Internal ticket number is FE-2500
(caused by: getaddrinfo ENOTFOUND db.fauna.com)
That error indicates that your application's DNS resolver is unable to locate the IP address for db.fauna.com
. There's nothing the driver can do about this problem: you have to fix it in your DNS infrastructure.
That the error is intermittent might be an indication that your DNS resolver is not caching results, or is suffering intermittent outages itself.
Hey, thanks for the reply @faunaee. That very well may be the case. It's odd that this seems to only happen when processing records in parallel. For some reason, this highlights some underlying brittleness in the DNS. I don't know if this is specific to Node, the underlying OS system calls, or network infrastructure in general.
The way I got around this was to surround the important client queries with retry logic. The problem is sporratic enough that retrying usually works. Not saying that's my favorite solution, but it seems to work.
@BobbyRadford - is there code you are willing to share to reproduce this?
Hey @BobbyRadford please reopen if you would like further assistance.
I am getting the following error message from the FaunaDB driver version 4.6.0. I am processing a large list of user data and making several calls to Fauna to check for existence and then creating or updating accordingly. There are a few other DB queries associated with this, but that's the gist of it.
This error comes sporadically at some point during the data processing. It doesn't happen at the same place in the list each time. Could this be related to rate-limiting or anything of the sort? This seems to happen more quickly if I run the processing by handling users in parallel. It's a bit odd that this looks like a DNS problem, but plenty of queries succeed prior to the failure.
Error
Stack
Software Versions