Navigation

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

    Error in Websocket connection.

    Test
    0
    3
    63
    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.
    • L
      laskshmi last edited by laskshmi

      Trying to connect to websocket and getting the below error on Nov 21 2023. It was working fine till 12:40 and getting the same "No Such Host" error there after.

      2023-11-21 12:40:24.996 [reactor-http-nio-3] WARN  r.netty.http.client.HttpClientConnect       - [3c5c6782-54, L:/192.168.29.145:21902 - R:apiconnect.angelbroking.com/103.82.177.189:443] The connection observed an error
      java.io.IOException: An existing connection was forcibly closed by the remote host
      	at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
      
      2023-11-21 12:40:47.313 [WebSocketConnectReadThread-50] ERROR c.a.api.utils.WebSocketClientUtils - Websocket Exception: 
      java.net.UnknownHostException: No such host is known (smartapisocket.angelone.in)
      	at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      	at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
      
      T 1 Reply Last reply Reply Quote 0
      • T
        trader_noob @laskshmi last edited by

        @laskshmi Try switching to IPv4 connection.

        1 Reply Last reply Reply Quote 0
        • M
          Moderator_1 last edited by

          Hello @laskshmi ,

          Apologies for the delayed response.
          How many times have you faced this issue and is it still troubling you?

          If you have any other issue, please share request and response on smartapi@angelbroking.com.

          Thank you.
          SmartAPI Team

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