TimeoutError with getIdsFromRequest(req) function

Hi Forestadmin team,

I am regularly using the “select all records” feature to post some actions on a wide list of selected users.

Now that our user database is growing, we are getting more and more timeout errors with the getIdsFromRequest function call.
For example, the action is running well if I am selecting around 1200 users, but I am getting a timeout if my list is containing more than 2000 users.

The call that I am using:
await new RecordsGetter(models.users).getIdsFromRequest(req)

The error I am getting when selecting more than 2000 users:
UnhandledPromiseRejectionWarning: TimeoutError: ResourceRequest timed out at ResourceRequest._fireTimeout (/usr/src/app/node_modules/generic-pool/lib/ResourceRequest.js:62:17) at Timeout.bound (/usr/src/app/node_modules/generic-pool/lib/ResourceRequest.js:8:15) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

My version: forest-express-sequelize: 6.0.0

Thanks

Hi @Louis-Marie !
We fixed this issue recently, can you update to the latest version of forest-express-sequelize ?

Hi Nicolas,

Ok, I will try to update soon.
Thanks

1 Like

Hi @Louis-Marie,

If I understand well, here is the Pull Request that patches your issue:

Did you try the v6.0.3 patch version?

Hi @arnaud,
I have not tested it yet, sorry.
I will come back later on this subject to keep you informed.
Thanks.