error: An existing connection was forcibly closed by the remote host
Solved
I am using the test application found on Git.
It cannot seem to hold a connection for longer than about 5 minutes. I get a few bars, then every time I get this error when trying to stream bars.
[WinError 10054] An existing connection was forcibly closed by the remote hostThe app seems to keep running (I am assuming its some thread that is running), but bars stop flowing.
Update - Though you would already be aware by now, I am updating this thread for benefit of all, with the information that, automatic reconnect was enabled in Version 3.0.2 on Apr 21, 2021.
Version 3.0.2
The latest version is version 4.2.2. >> https://pypi.org/project/truedata-ws/
Please make sure you have the latest version.
pip install truedata-ws
Update - Though you would already be aware by now, I am updating this thread for benefit of all, with the information that, automatic reconnect was enabled in Version 3.0.2 on Apr 21, 2021.
Version 3.0.2
The latest version is version 4.2.2. >> https://pypi.org/project/truedata-ws/
Please make sure you have the latest version.
pip install truedata-ws
Please go to https://wstest.truedata.in/ first to test everything.
Add your credentials and the very same symbols which you are pulling from the Git code.
Let me know what happens and then we will move ahead.
Please go to https://wstest.truedata.in/ first to test everything.
Add your credentials and the very same symbols which you are pulling from the Git code.
Let me know what happens and then we will move ahead.
This seems stable.
So maybe your sample code is not stable.
This is the code I use:
This seems stable.
So maybe your sample code is not stable.
This is the code I use:
One thing I noticed on https://wstest.truedata.in/ is that it shows heartbeats.
The sample code I use doesn't show any heartbeats.
Perhaps this is why the socket is closed. I have tried to google this error and it seems that many times this error occurs because the client and server cannot agree on whether the connection is alive or not.
One thing I noticed on https://wstest.truedata.in/ is that it shows heartbeats.
The sample code I use doesn't show any heartbeats.
Perhaps this is why the socket is closed. I have tried to google this error and it seems that many times this error occurs because the client and server cannot agree on whether the connection is alive or not.
1. ok - but I am not sure how that deals with my problem
2. correct. this is what your documentation says. I went through your installation instructions. You can actually see this in the import statements
3. ok
4. of course, because I copied / pasted and this forum lost all my indentations
5. version I am using is 3.8.3 32 bit
6. the code you send is identical to my code. did I miss something?
By the way: I am not sure what happened on your side, but right now the feed has been up for the last 2 hours.
Maybe somehting got fixed on your side?!?! of course I am only getting CRUDEOIL-I prices right now because markets are closed. So I will wait for tomorrow's market session. Thanks!
1. ok - but I am not sure how that deals with my problem
2. correct. this is what your documentation says. I went through your installation instructions. You can actually see this in the import statements
3. ok
4. of course, because I copied / pasted and this forum lost all my indentations
5. version I am using is 3.8.3 32 bit
6. the code you send is identical to my code. did I miss something?
By the way: I am not sure what happened on your side, but right now the feed has been up for the last 2 hours.
Maybe somehting got fixed on your side?!?! of course I am only getting CRUDEOIL-I prices right now because markets are closed. So I will wait for tomorrow's market session. Thanks!
Finally !
We did nothing!
Lets check tomorrow to see if you get any issues.
Finally !
We did nothing!
Lets check tomorrow to see if you get any issues.
My sample code stopped with [WinError 10054] An existing connection was forcibly closed by the remote host
and your test website too:
My sample code stopped with [WinError 10054] An existing connection was forcibly closed by the remote host
and your test website too:
Replies have been locked on this page!