getaddrinfo ENOTFOUND - Unable to make call #1541
Unanswered
CryptoRhinoGH
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a script running with crontab, and for some reason, it sometimes fails. I run the script at 30 mins intervals and it fails once or twice a day, but works fine every time else. The url I'm accessing with error:
FetchError: request to https://apilist.tronscan.org/api/token_trc20?contract=TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t failed, reason: getaddrinfo ENOTFOUND apilist.tronscan.org
, my code:I'm very confused as to why it is only failing some times. I have never had any issue with this endpoint ever. I have tried running it multiple times by myself as user root and a non-root sudoer, but can't replicate the same error, it seems to just happen with the cron service.
Beta Was this translation helpful? Give feedback.
All reactions