ERROR:websocket:error from callback >: on_error() takes no arguments (2 given) ERROR:websocket:error from callback >: on_close() takes no arguments (1 given)
The question is that why is it not trying to reconnect .What is does is that it stops ?
I am using the same code . let me share my code with you :
import cPickle as pickle from kiteconnect import WebSocket import time from datetime import datetime from Queue import Queue,LifoQueue from threading import Thread import pandas as pd import MySQLdb df = pd.DataFrame()
q =LifoQueue(maxsize=10) #max size is to ensure that the program is not running even after the WebSocket has broken for long #tickData = 0
Thanks a lot Sujith, I think the issue will not come again as I think the issue was . I will post my queries in case it comes again.
as mentioned in the first message
ERROR:websocket:error from callback >: on_error() takes no arguments (2 given) ERROR:websocket:error from callback >: on_close() takes no arguments (1 given)
Can you let us know which client you are using?
def on_error(error, ws):
print("error")
Is it ok ?
as mentioned in the first message
ERROR:websocket:error from callback >: on_error() takes no arguments (2 given)
ERROR:websocket:error from callback >: on_close() takes no arguments (1 given)