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

connection error

Open YonathanB opened this issue 4 years ago • 3 comments

Hello, I follow the stating guide: install package + add example

but get a connection error:

File "C:\Users\יונתן\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

any guess? thank you

YonathanB avatar Jan 20 '21 11:01 YonathanB

Hello @YonathanB,

That error is caused by the requests package. It might be because of your internet connection. Try disabling the firewall (if active) or use a VPN. Please let me know if you can see the technicals on this page: https://www.tradingview.com/symbols/NASDAQ-AAPL/technicals/.

folfcoder avatar Jan 20 '21 11:01 folfcoder

@deathlyface , Thank you for your quick answer.

I can see there all the technicals

YonathanB avatar Jan 20 '21 13:01 YonathanB

I am getting same error message after running the same loop a random number of times. I have already tried using VPN, and the thought of taking down my firewall isn't exactly appealing. Any other solutions? Is there any possibility of this being a rate limit issue?

If not, I wonder if there is a way to capture this error and automatically retry the connection instead of just crashing...

beachboy88 avatar May 24 '22 10:05 beachboy88