Cassandra - TypeError:“value”参数超出范围

时间:2017-10-25 01:25:04

标签: javascript node.js cassandra

我经常收到以下错误消息。有什么想法吗?

TypeError: "value" argument is out of bounds
        at checkInt (buffer.js:1041:11)
        at Buffer.writeInt32BE (buffer.js:1244:5)
        at Encoder.encodeInt (/gps/node_modules/cassandra-driver/lib/encoder.js:522:9)
        at Encoder.encode (/gps/node_modules/cassandra-driver/lib/encoder.js:1310:18)
        at ExecuteRequest.writeQueryParameters (/gps/node_modules/cassandra-driver/lib/requests.js:129:38)
        at ExecuteRequest.write (/gps/node_modules/cassandra-driver/lib/requests.js:96:8)
        at whileProcess (/gps/node_modules/cassandra-driver/lib/writers.js:209:50)
        at Immediate.next (/gps/node_modules/cassandra-driver/lib/utils.js:882:5)
        at runCallback (timers.js:672:20)
        at tryOnImmediate (timers.js:645:5)
        at processImmediate [as _immediateCallback] (timers.js:617:5)

1 个答案:

答案 0 :(得分:2)

您正在尝试将值设置为> 2 ^ 31-1,它是带符号32位整数的最大表示值。