Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

[Bug] KuCoin: Cannot read properties of null (reading 'map') #313

Open
CherryDT opened this issue Nov 27, 2021 · 0 comments
Open

[Bug] KuCoin: Cannot read properties of null (reading 'map') #313

CherryDT opened this issue Nov 27, 2021 · 0 comments

Comments

@CherryDT
Copy link

My version is 0.47.0.

Uncaught TypeError: Cannot read properties of null (reading 'map')
    at KucoinClient.__requestLevel2Snapshot (/mnt/c/Users/david/proj/***/node_modules/ccxws/dist/src/exchanges/KucoinClient.js:474:40)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  domainEmitter: <ref *1> KucoinClient {
    _events: [Object: null prototype] {
      ticker: [Function: bound markAlive],
      candle: [Function: bound markAlive],
      trade: [Function: bound markAlive],
      l2snapshot: [Array],
      l2update: [Array],
      l3snapshot: [Function: bound markAlive],
      l3update: [Function: bound markAlive]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    wssPath: undefined,
    name: 'KuCoin',
    _tickerSubs: Map(0) {},
    _tradeSubs: Map(0) {},
    _candleSubs: Map(0) {},
    _level2SnapshotSubs: Map(0) {},
    _level2UpdateSubs: Map(1) { 'LTCBTC' => [Object] },
    _level3SnapshotSubs: Map(0) {},
    _level3UpdateSubs: Map(0) {},
    _wss: SmartWss {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      wssPath: 'wss://ws-api.kucoin.com/endpoint?token=2neAiuYvAU61ZDXANAGAsiL4-iAExhsBXZxftpOeh_55i3Ysy2q2LEsEWU64mdzUOPusi34M_wGoSf7iNyEWJ15OO0YZ9GvgKhkprAF56wZ3ePz-XXt4H9iYB9J6i9GjsxUuhPw3BlrzazF6ghq4L1kBi2iGhsTnOVpfaB4m1e4=.H24Oa1X7hLfaCK-P0zRl3w==&connectId=c0ea6f310cbc1c1657cb6fc70b908c3ff59c1877d8db8280',
      _retryTimeoutMs: 15000,
      _connected: true,
      _wss: [WebSocket],
      [Symbol(kCapture)]: false
    },
    _watcher: Watcher {
      client: [Circular *1],
      intervalMs: 90000,
      _intervalHandle: Timeout {
        _idleTimeout: 90000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 65230,
        _onTimeout: [Function: bound _onCheck],
        _timerArgs: undefined,
        _repeat: 90000,
        _destroyed: false,
        [Symbol(refed)]: true,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 5204,
        [Symbol(triggerId)]: 5127
      },
      _lastMessage: undefined
    },
    hasTickers: true,
    hasTrades: true,
    hasCandles: true,
    hasLevel2Snapshots: false,
    hasLevel2Updates: true,
    hasLevel3Snapshots: false,
    hasLevel3Updates: false,
    _wssFactory: [Function (anonymous)],
    _sendSubLevel2Snapshots: [Function: NotImplementedFn],
    _sendUnsubLevel2Snapshots: [Function: NotImplementedFn],
    _sendSubLevel3Snapshots: [Function: NotImplementedFn],
    _sendUnsubLevel3Snapshots: [Function: NotImplementedFn],
    candlePeriod: '_1m',
    _pingIntervalTime: 18000,
    restThrottleMs: 250,
    connectInitTimeoutMs: 5000,
    _sendMessage: [Function: bound bound add] { cancel: [Function: bound cancel] },
    _requestLevel2Snapshot: [Function: bound bound add] { cancel: [Function: bound cancel] },
    _requestLevel3Snapshot: [Function: bound bound add] { cancel: [Function: bound cancel] },
    _connectId: 'c0ea6f310cbc1c1657cb6fc70b908c3ff59c1877d8db8280',
    _pingInterval: Timeout {
      _idleTimeout: 18000,
      _idlePrev: [TimersList],
      _idleNext: [TimersList],
      _idleStart: 101232,
      _onTimeout: [Function: bound _sendPing],
      _timerArgs: undefined,
      _repeat: 18000,
      _destroyed: false,
      [Symbol(refed)]: true,
      [Symbol(kHasPrimitive)]: false,
      [Symbol(asyncId)]: 5205,
      [Symbol(triggerId)]: 5127
    },
    [Symbol(kCapture)]: false
  },
  domainThrown: false
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant