Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

NR error: undefined method `each' for nil:NilClass in DataMagic.search #276

Open
@yozlet

Description

@yozlet

New Relic error log. Error triggered by loading this URL on staging: https://ccapi-staging.18f.gov/v1/schools/stats?school.degrees_awarded.predominant=2,3&_fields=2013.student.size&_metrics=avg,std_deviation,std_deviation_bounds

I think it's because the school.degrees_awarded.predominant field doesn't exist - so why isn't ErrorChecker trapping it?

Traceback:

NoMethodError: undefined method `each' for nil:NilClass
                       /home/vcap/app/lib/data_magic.rb:  142:in `search'
                      /home/vcap/app/app/controllers.rb:   69:in `search_and_respond'
                      /home/vcap/app/app/controllers.rb:   65:in `process_params'
                      /home/vcap/app/app/controllers.rb:   51:in `block (2 levels) in <top (required)>'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions