Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Websocket disconnection issue

    Test
    0
    3
    25
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RK123 last edited by

      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.

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @RK123 last edited by

        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

        1 Reply Last reply Reply Quote 0
        • R
          RK123 last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post