how to resolve Connection error: 1006 - connection was closed uncleanly (None)

shivdas_b
shivdas_b edited September 2023 in General
Due to following error, lost good amount today.
Any strong solution for this error

whenever the order gets trigger, my algo should have to respond it and close the trade with 1% profit or 0.5% loss.
but due to following error i was not able to get order_update_details
TOday i got following error around 3-4 times randomly.

2023-09-18 15:26:20,676 ERROR Connection error: 1006 - connection was closed uncleanly (None)
2023-09-18 15:26:20,695 ERROR Connection closed: 1006 - connection was closed uncleanly (None)


1. I am running the same software from last 3month and its working well
2. Running on 8GB aws machine (5Gbps internet speed)
  • shivdas_b
    shivdas_b edited September 2023
    2023-09-20 9.30
    i am facing this issue again
    having good internet connectivity.

    are there any internal updates in api is that causing this issue?
    @sujith @rakeshr
  • rakeshr
    Connection error: 1006 - connection was closed uncleanly (None)
    Go through the python websocket FAQs here.
  • shivdas_b
    @rakeshr i have went through give FAQ

    what this error mean
    ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) ,
  • rakeshr
    ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
    The main ticker thread is blocked by some process, you need to check it. You can use a multi-thread setup as explained in this thread. To test, you can remove all the ticker blocker processes and test once the single thread ticker.
  • shivdas_b
    ok @rakeshr , i will check which threads/processes are blocking ticker thread.
    as far as i know I have kept my code neat and clean. i will cross verify again and update in this chat
    thanks for reply @rakeshr
Sign In or Register to comment.