python-tradingview-ta icon indicating copy to clipboard operation
python-tradingview-ta copied to clipboard

Connection Error

Open beachboy88 opened this issue 3 years ago • 1 comments

Describe the bug After several hours of successfully running a bot, I suddenly get the following error message:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='scanner.tradingview.com', port=443): Max retries exceeded with url: /crypto/scan (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000232682EF130>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

To Reproduce Running bot for several hours. Bot does multi-analysis on all Binance pairs every few minutes, as well as checking price on ~ 10 pairs every 20 seconds.

Expected behavior Continuous maintenance of connection without said error.

Version

  • OS: Windows 10
  • Python: 3.10
  • TradingView-TA: Not sure how to find this version number

beachboy88 avatar May 27 '22 00:05 beachboy88

Hi @beachboy88,

The error getaddrinfo failed indicates that your computer has trouble resolving the hostname scanner.tradingview.com. It could be caused by a number of reasons, including DNS errors, proxy usage, and network disruption. Please double-check that your connection is stable and that you are not using a proxy or VPN.

folfcoder avatar Jun 08 '22 23:06 folfcoder