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

DDP-Ratelimiter-error is NOT reported and crashes Form #738

Open
thebarty opened this issue Mar 17, 2017 · 0 comments
Open

DDP-Ratelimiter-error is NOT reported and crashes Form #738

thebarty opened this issue Mar 17, 2017 · 0 comments

Comments

@thebarty
Copy link

thebarty commented Mar 17, 2017

Hi guys,

just tested DDP-Rate-Limiting (https://docs.meteor.com/api/methods.html#DDPRateLimiter-setErrorMessage)
and found that this form does NOT report the error - it just crashes at this line:

// If error.details is an object, we may try to set fields errors from it

with the error

Cannot read property 'setError' of undefined

The error that is thrown by DDPRateLimiter is NOT in the expected format.

It is NOT really bad as the form is disabled, so this is just for your info. Maybe someone takes the effort to fix it.

HOW TO REPLICATE:

  1. install DdpRateLimiter
  2. keep its default-settings
  3. go to your signin page and enter wrong data... then quickly hit SUBMIT 5 times
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