Does kite API's and Websocket support IPv6 Network?

sandeepmaganti
Does kite API's and WebSocket support IPv6 Network? As I have submitted my application to app store it got rejected saying that they are not able to load Kite login page. Apple people have reviewed the application around 1 AM to 2 AM IST midnight. Is there any downtime for kite at that time? They also mentioned that they will be testing in IPv6 only.
  • sujith
    Hi,
    Post-midnight OMS doesn't accept any request since BOD process will go on till around 6:00 AM IST. You need to mention that on itunesconnect while uploading new build.
  • sujith
    IPv6 shouldn't be a problem.
  • sandeepmaganti
    Downtime is for OMS not to login's right? I am unable to login to kite midnights. Or if any response from the server that systems are under maintenance.
  • sujith
    OMS handles login also. We have asked them to give a more descriptive error message.
  • sandeepmaganti
    Is there any development environment which runs 24/7?
  • sujith
    We don't have Sandbox yet. We are waiting for APIs from OMS for Sandbox.
  • vmx
    vmx edited June 28
    Hi Team,

    Could you please let us know if Websockets support IPv6 ?

    On an IPv4 network
    ./websocat.x86_64-unknown-linux-musl ws://ws.kite.trade
    websocat: WebSocketError: WebSocketError: Received unexpected status code (400 Bad Request)


    On an IPv6 only network
    /tmp/websocat.x86_64-unknown-linux-musl ws://ws.kite.trade
    websocat: WebSocketError: Network unreachable (os error 101)
    websocat: error running


    *Edit for a working websocket server on IPv6 only network

    /tmp/websocat.x86_64-unknown-linux-musl ws://echo.websocket.org
    websocat: WebSocketError: WebSocketError: Redirected (301 Moved Permanently) to https://echo.websocket.org/
    websocat: error running
  • vmx
    Hi Team,

    A ping on this thread. Did you get a chance to check this ?
  • sujith
    We don't have any kind of restriction for IPv6.
  • vmx
    vmx edited July 10
    Hi Sujith,

    Thank you for taking a look here. If you could see above ws://ws.kite.trade returns Network unreachable on an IPv6 only network while a different server responds back.

    I have been able to request CSVs etc. on an IPv6 only network from kite( for e.g. api.kite.trade) but websocket is unreachable. Even name resolution fails for IPv6 while for other domains it works

    nslookup api.kite.trade
    Server: 10.255.255.254
    Address: 10.255.255.254#53

    Non-authoritative answer:
    Name: api.kite.trade
    Address: 104.16.33.50
    Name: api.kite.trade
    Address: 104.16.34.50
    Name: api.kite.trade
    Address: 2606:4700::6810:2232
    Name: api.kite.trade
    Address: 2606:4700::6810:2132


    nslookup ws.kite.trade
    Server: 10.255.255.254
    Address: 10.255.255.254#53

    Non-authoritative answer:
    ws.kite.trade canonical name = kite-prod-ticker-connect-1378672944.ap-south-1.elb.amazonaws.com.
    Name: kite-prod-ticker-connect-1378672944.ap-south-1.elb.amazonaws.com
    Address: 3.109.126.236
    Name: kite-prod-ticker-connect-1378672944.ap-south-1.elb.amazonaws.com
    Address: 52.66.86.90


    I could show the exact output if needed(it'll take some time as I've stopped using IPv6 only network for now) but if you see above resolution doesn't return an IP to point to. Am I missing something here ?
  • Frank833
    I don’t think Kite API and Websocket fully support IPv6 yet. things might have changed

    Best regands [url=https://mazzani.pl] :) [/url]
  • vmx
    Hi Team,
    A ping on this thread. Do we have any update?
  • vmx
    Hi Sujith/Team,

    A ping on this thread. If I can present any other results / am missing something completely please do let me know.
  • vmx
    Hi @sujith,

    Any update on this thread if you got a chance to look at it? I can still reproduce this at my end

    wss://ws.kite.trade ( Fails with IPv6 )
    root@postgresql01:/tmp# ./websocat wss://ws.kite.trade
    websocat: WebSocketError: WebSocketError: Received unexpected status code (400 Bad Request)
    websocat: error running
    root@postgresql01:/tmp#
    root@postgresql01-ipv6:/tmp# ./websocat wss://ws.kite.trade
    websocat: WebSocketError: Network unreachable (os error 101)
    websocat: error running
    root@postgresql01-ipv6:/tmp#
    ws://echo.websocket.org ( A random test site )
    root@postgresql01:/tmp# ./websocat ws://echo.websocket.org
    websocat: WebSocketError: WebSocketError: Redirected (301 Moved Permanently) to https://echo.websocket.org/
    websocat: error running
    root@postgresql01:/tmp#
    root@postgresql01-ipv6:/tmp# ./websocat ws://echo.websocket.org
    websocat: WebSocketError: WebSocketError: Redirected (301 Moved Permanently) to https://echo.websocket.org/
    websocat: error running
    root@postgresql01-ipv6:/tmp#
    wss://api.kite.trade ( Given, that api.kite.trade does not support websocket protocol, it still responds with a HTTP 200 on both sides)
    root@postgresql01:/tmp# ./websocat wss://api.kite.trade
    websocat: WebSocketError: WebSocketError: Received unexpected status code (200 OK)
    websocat: error running
    root@postgresql01:/tmp#
    root@postgresql01-ipv6:/tmp# ./websocat wss://api.kite.trade
    websocat: WebSocketError: WebSocketError: Received unexpected status code (200 OK)
    websocat: error running
    root@postgresql01-ipv6:/tmp#
  • vmx
    Hi Team,
    Can we at least get an ack on this? And if possible, some tentative timelines on when we can expect this to be implemented? Have been following it up for quite some time now and there has been very little engagement here.
  • sujith
    @vmx,
    We have informed the team to take a look at this. It should be fixed in a couple of weeks.
  • sujith
    @vmx,
    The team suggested to use dualstack network to resolve this issue.
  • vmx
    Thank you for the update @sujith , I was hoping to see support for IPv6 only networks. Is there a possibility/plan to include it in the long run? With a yes/no to this query I guess we're good to close this thread.
  • sujith
    We don't have any plans like that.
  • vmx
    Thank you, we can close this thread.
This discussion has been closed.