Update:
the 405 issue is resolved by adding 'HEAD' in the methods as below,
methods=['POST','HEAD']
for the incorrect context-type, it is handled by using json.loads
json.loads(app.current_request.raw_body)
Thanks.
Update:
i tried to debug using the ngrok console and i see that the 'Content-Type' is coming as 'application/x-www-form-urlencoded' , It has to be 'json' if i am correct?
@rakeshr i tried threaded = true, but it does nothing just 'Print this' is printed. Below is my code.
from db_connector import insert_ticks
....Tokens etc
def on_ticks(ws, ticks):
# Callback to receive ticks
print(ticks)
insert_ticks(t…
@ZI4453
the sql is a Local hosted server.
@sujith
i am getting 58 instruments as of now. Just want to understand, will blocking the thread cause the Socket to disconnect?
@rakeshr Thanks, i will try the threaded method and update how it goes.
B…
@rakeshr
Not sure if it is blocking of not , but i am writing the ticks to mysql DB as per below code. insert_ticks is from another .py file which writes to db.
def on_ticks(ws, ticks):
# Callback to receive ticks
insert_ticks(ticks)
l…
I am facing freq disconnect and re connection is also not working. The logs as below
2019-08-13 11:13:22,003 Connection closed: 1006 - connection was closed uncleanly (WebSocket opening handshake timeout (peer did not finish the opening handshake i…
I am facing freq disconnect and re connection is also not working. The logs as below
2019-08-13 11:13:22,003 Connection closed: 1006 - connection was closed uncleanly (WebSocket opening handshake timeout (peer did not finish the opening handshake i…