You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.
I've set up the module and seems to be working fine, however I'm getting duplicate key errors: errmsg: 'E11000 duplicate key error collection: mydb.ratelimits index: _id_ dup key: { : "G/IAnx1Agvj9X0JzMvChzHFl6jKU0ps4dnfVvJ+ZYTc=" }' } }
I've ensured the index to be set, this is my implementation:
This is the middleware I set up (same as defaults, but logging the dup key error):
varrateLimitMiddleware=newExpressBrute(bruteStore,{failCallback: function(req,res,next,nextValidRequestDate){varerr=newError('Too many attempts.');err.status=429;next(err);},handleStoreError: function(error){console.log(error);}});
Any ideas?
The text was updated successfully, but these errors were encountered:
I've set up the module and seems to be working fine, however I'm getting duplicate key errors:
errmsg: 'E11000 duplicate key error collection: mydb.ratelimits index: _id_ dup key: { : "G/IAnx1Agvj9X0JzMvChzHFl6jKU0ps4dnfVvJ+ZYTc=" }' } }
I've ensured the index to be set, this is my implementation:
This is the middleware I set up (same as defaults, but logging the dup key error):
Any ideas?
The text was updated successfully, but these errors were encountered: