-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: cannot join current thread #51
Comments
Well I at least have found an easy way to re-create this crash. Run the code I posted and then close the connection from python.exe with tcpview (this is for windows) and the crash occurs. |
This exception can be avoided by removing "self.thread.join()" from line 68 of GDAX-0.3.1-py2.7.egg\GDAX\WebsocketClient.py. Although I have no idea if this is the best solution or if it will cause other problems... |
This line has been removed. We should consider options to add this back without the possibility of errors. |
Hi @danpaquin , How is this problem going? I tried to subscribe to "user" channel (authenticated) and the connection closed very soon. Retried many times and they all die after the same amount of time. Looked like it was a heartbeat problem. Below is my log output:
Look at the timestamp, apparently the connection was closed from the server side at 1-minute mark. I tried a similar piece of code but subscribe to "level2" and/or "ticker" channels and they seem to work fine. The problem appear to only happen when I'm subscribing to "user" channel. |
Let me create a new issue, since this one is closed and I'm not totally sure this one is exactly the same reason as this thread. Created #276 |
Running python 2.7.13 on windows 7 x64.
Running the following code gets a random crash after anywhere between 12-16 hours later.
Crash
The text was updated successfully, but these errors were encountered: