question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError('value is out of bounds')

See original GitHub issue

This error is crashing my app, and I’m having a hard time tracking down the parameter and value that’s causing it:

buffer.js:784
    throw TypeError('value is out of bounds');
          ^
TypeError: value is out of bounds
    at TypeError (<anonymous>)
    at checkInt (buffer.js:784:11)
    at Buffer.writeUInt32LE (buffer.js:841:5)
    at WritableTrackingBuffer.writeUInt32LE (./node_modules/mssql/node_modules/tedious/lib/tracking-buffer/writable-tracking-buffer.js:92:17)
    at Object.TYPE.writeParameterData (./node_modules/mssql/node_modules/tedious/lib/data-type.js:264:25)
    at new RpcRequestPayload (./node_modules/mssql/node_modules/tedious/lib/rpcrequest-payload.js:66:22)
    at Connection.execSql (./node_modules/mssql/node_modules/tedious/lib/connection.js:712:56)
    at ./node_modules/mssql/lib/tedious.js:563:33
    at Transaction.next (./node_modules/mssql/lib/main.js:738:28)
    at Request._release (./node_modules/mssql/lib/main.js:895:33)
    at Request.userCallback (./node_modules/mssql/lib/tedious.js:462:23)

It’s happening in a batch of about 2k inserts inside a transaction. Any pointers to figuring this out would be greatly appreciated.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
StrikerJScommented, Dec 30, 2017

Wtf u talk m8s kys lel lmao 420

0reactions
dhensbycommented, Nov 6, 2019

This is (was) and issue with the tedious driver which is now fixed. Please use the latest version of node-mssql if you wish to resolve this issue. locking this thread as resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cassandra - TypeError: "value" argument is out of bounds
You are trying to set a value to something > 2^31-1 which is the max represented value in signed 32 bit integer.
Read more >
Cannot read property of undefined in JavaScript - Stack Diary
You are trying to access an index of an array that is out of bounds. You are trying to call a function that...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
How to Fix IndexError in Python - Rollbar
This error occurs when an attempt is made to access an item in a list at an index which is out of bounds....
Read more >
Built-in Exceptions — Python 3.11.1 documentation
Raised when a sequence subscript is out of range. (Slice indices are silently truncated to fall in the allowed range; if an index...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found