Websocket disconnection issue


  • Good Afternoon,
    today I am going to connect smartApi order WebSocket, I received unexpected server errors

    1. When I trying to connect with angelone websocket, I got 503 server error.server error .jpg

    2. When I again try to connect, it gave connection error.
      connection error image.jpg

    3. After some time, it directly connects and give response.

    4. But, after some time when disconnect connection, and again build the connection through websocket it gave me same errors.

    I get confused why this happen, Pls resolve this unexpected issue asap.

    thank you.


  • connection header.jpg

    I am currently using the following header parameters for my WebSocket connection:

    Authorization: (Value starts with 'Bearer' keyword)
    x-api-key
    x-client-code
    x-feed-token

    Issue:
    Considering your hypothesis if I am passing the wrong headers or wrong values then how I am able to connect to the WebSocket within 5 minutes without making any changes? I need to understand why this is happening.

    Verification Needed:
    I also need to verify if the WSS URI I use is correct.

    If possible connect me with the tech team.

    Thank you.


  • Hello @RK123

    Can you please provide the headers here you are passing
    You need to pass these as well API_KEY,ClientCode and feedToken
    In postman you will get the response as in binary
    But if you are using any of the sdk such as python,Node or java you will be able to see the response as in string

    Regards,
    SmartAPI Team