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.

invalid zip code should report error in standard json response #213

Open
@dnesting

Description

@dnesting

We've seen a few dozen of these errors in production for /v1/schools/ over the last few hours:

NoMethodError: undefined method `[]' for nil:NilClass
/home/vcap/app/lib/data_magic/query_builder.rb: 132:in `search_location'
/home/vcap/app/lib/data_magic/query_builder.rb:  30:in `generate_squery'
/home/vcap/app/lib/data_magic/query_builder.rb:  13:in `from_params'
/home/vcap/app/lib/data_magic.rb:  69:in `search'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions