Skip to content

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

@RajatKumarChahar

Description

@RajatKumarChahar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions