question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Asynchronous Validation in 2.20.2 don't work

See original GitHub issue

Hi,

It seems that there’s something wrong with the use of bluebird in 2.20.2.

app.use(expressValidator({
  customValidators: {
    isUsernameAvailable: function(username) {
      return new Promise(function(resolve, reject) {
        resolve(true)
      });
    }
  }
}));

And got the message TypeError: promise.reflect is not a function in console

I downgraded to 2.20.1 and it works.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pprbcommented, Mar 21, 2016

Works fine in 2.20.3

Thx

0reactions
lock[bot]commented, Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[v2]: Field level asynchronous validation does not work · Issue ...
From Formik 2.0.1 (with current version 2.1.2 as well) field level asynchronous validation does not work as expected.
Read more >
Async custom validator not working and showing error ...
You have been given good tips on how to solve your problem. Those gathered... So your current issues are: Add return type of...
Read more >
Using Custom Async Validators in Angular Reactive Forms
Ocasionally, we want to validate some input in our fields before submission, which will be validated against an asynchronous source.
Read more >
Creating Angular Synchronous and Asynchronous Validators ...
Validators work primarily through what's returned from the validate() method. The validate(control:abstractControl): ValidationErrors|null ...
Read more >
Asynchronous Validation — FluentValidation documentation
In some situations, you may wish to define asynchronous rules, for example when working with an external API. By default, FluentValidation allows custom ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found