Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. bhxshxn
    3. Best
    B
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by bhxshxn

    • websocketv2 throws 401 error on nodejs sdk

      websocketv2 throws 401 error on nodejs sdk where as it works on the python sdk with same credentials please fix this this the error:
      Error: Unexpected server response: 401
      at ws.onerror (/home/bhushan/workspace/botlab-v-2/streamer/node_modules/smartapi-javascript/lib/websocket2.0.js:89:15)
      at callListener (/home/bhushan/workspace/botlab-v-2/streamer/node_modules/smartapi-javascript/node_modules/ws/lib/event-target.js:290:14)
      at WebSocket.onError (/home/bhushan/workspace/botlab-v-2/streamer/node_modules/smartapi-javascript/node_modules/ws/lib/event-target.js:230:9)
      at WebSocket.emit (node:events:518:28)
      at emitErrorAndClose (/home/bhushan/workspace/botlab-v-2/streamer/node_modules/smartapi-javascript/node_modules/ws/lib/websocket.js:1033:13)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

      Node.js v20.11.0

      posted in Bugs
      B
      bhxshxn