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

Exception validation user defined fields #19

Open
dleadbetter opened this issue Sep 27, 2022 · 0 comments
Open

Exception validation user defined fields #19

dleadbetter opened this issue Sep 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dleadbetter
Copy link
Contributor

An error occurs when attempting to save a record without entering a value for a required user defined field:

12:42:54 PM api.1 |  Completed 500 Internal Server Error in 32ms (ActiveRecord: 2.7ms | Allocations: 5524)
12:42:54 PM api.1 |  TypeError (no implicit conversion of Hash into String):
12:42:54 PM api.1 |  /Users/dleadbetter/.rbenv/versions/3.1.1/lib/ruby/3.1.0/json/common.rb:216:in `initialize'
12:42:54 PM api.1 |  /Users/dleadbetter/.rbenv/versions/3.1.1/lib/ruby/3.1.0/json/common.rb:216:in `new'
12:42:54 PM api.1 |  /Users/dleadbetter/.rbenv/versions/3.1.1/lib/ruby/3.1.0/json/common.rb:216:in `parse'
12:42:54 PM api.1 |  user-defined-fields (4fff0bdfaad7) app/models/concerns/user_defined_fields/fieldable.rb:46:in `block in validate_user_defined_fields'
12:42:54 PM api.1 |  activerecord (7.0.2.4) lib/active_record/relation/delegation.rb:88:in `each'
12:42:54 PM api.1 |  activerecord (7.0.2.4) lib/active_record/relation/delegation.rb:88:in `each'
12:42:54 PM api.1 |  user-defined-fields (4fff0bdfaad7) app/models/concerns/user_defined_fields/fieldable.rb:41:in `validate_user_defined_fields'
@dleadbetter dleadbetter self-assigned this Sep 27, 2022
@dleadbetter dleadbetter added the bug Something isn't working label Sep 27, 2022
dleadbetter added a commit that referenced this issue Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant