Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. arunsingh
    3. Best
    A
    • Profile
    • Following 1
    • Followers 2
    • Topics 9
    • Posts 33
    • Best 1
    • Groups 0

    Best posts made by arunsingh

    • Websocket 2.0, frequently getting 401

      Hi @admin ,

      I am getting below error, when I try to authenticate.
      Sometimes it works, but sometimes it give below error.

      I am passing headers as below
      ws.addHeader("Authorization", "Bearer " + token);
      ws.addHeader("x-api-key", apiKey);
      ws.addHeader("x-client-code", clientId);
      ws.addHeader("x-feed-token", feedToken);

      OpeningHandshakeException: The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 401 Unauthorized

      posted in General Discussion
      A
      arunsingh