Error in Websocket connection.


  • 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)
    

  • 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


  • @laskshmi Try switching to IPv4 connection.