Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: "size" argument must not be larger than 2147483647 #362

Open
RajatKumarChahar opened this issue Mar 31, 2021 · 0 comments
Open

Comments

@RajatKumarChahar
Copy link

RajatKumarChahar commented Mar 31, 2021

Issue Description

I am using sequelize(postgresql) with feather js which throws an uncaught exception

RangeError: "size" argument must not be larger than 2147483647
   at Function.Buffer.alloc (buffer.js:233:3)
   at module.exports.Reader.addChunk (/app/node_modules/packet-reader/index.js:35:28)
   at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:118:18)
   at emitOne (events.js:116:13)
   at Socket.emit (events.js:211:7)
   at addChunk (_stream_readable.js:263:12)
   at readableAddChunk (_stream_readable.js:250:11)
   at Socket.Readable.push (_stream_readable.js:208:10)
   at TCP.onread (net.js:601:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

When I run a findAll query.

What are you doing?

I have a user table for which I run a findAll query(Eager Loading) to get all contacts of this user.
The query works fine for some users but for a few users node js throws the RangeError(mentioned above
)
The data returned from the query is not very huge. Even when I set the limit to 1 still it throws the same error.

Environment

  • Sequelize version: 4.44.4
  • feathers-sequeliz: 3.1.3
  • Node.js version: 8.17.0
  • Operating System: Ubuntu 18.04.3
@RajatKumarChahar RajatKumarChahar changed the title RangeError: "size" argument must not be larger than 2147483647 #13162 RangeError: "size" argument must not be larger than 2147483647 Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant