-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Duplicate error messages #892
Comments
How did you fix it @moray95 ? Meanwhile...
|
I'm seeing the same problem here, if you attempt to sign up with an email already in use, you get multiple validation errors.
devise (4.3.0) Ruby 2.4.1, Rails 5.1.1, using Postgres (pg 0.21.0) |
I have the same problem. |
It seems like this issue could potentially be caused by the following piece of code in
I've also noticed that if you place the |
I hope they fix this. |
Same issue here. Posted a stack overflow question here. |
I'll take a look at this tomorrow. Does anyone have the time to submit a PR with a failing test? |
@lynndylanhurley In attempting to write a failing test, I've realized this issue seems to only affect Rails >= 5.1.0. So, I've got a failing test, but can't submit a PR because (I'm pretty sure) it would involve changing the gemspec. Hopefully that information is of some use to you! |
I ran into this on the released version of the gem, seems to be fixed on master since #981 was merged though. |
Good to know. We should be cutting a release soon per @lynndylanhurley ! |
I checked and is fixed in master as @jduff said, so I'm closing this |
A similar issue showed up again in 1.1.5 and 1.1.4 |
I have integrated devise_token_auth to my Ruby on Rails application and have encountered a strange issue with errors. Sometimes, the requests managed by devise_token_auth returns the same error multiple times in the
errors
field. Here is an example of such responses:To reproduce the issue just clone this repository, containing a basic setup for devise_token_auth, and once the server is running, send the request below twice. The first one will succeed and the second one will fail with duplicate errors, like the one above.
The text was updated successfully, but these errors were encountered: