{"action":"created","issue":{"url":"https://api.github.com/repos/18F/open-data-maker/issues/266","repository_url":"https://api.github.com/repos/18F/open-data-maker","labels_url":"https://api.github.com/repos/18F/open-data-maker/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/18F/open-data-maker/issues/266/comments","events_url":"https://api.github.com/repos/18F/open-data-maker/issues/266/events","html_url":"https://github.com/18F/open-data-maker/issues/266","id":125716946,"number":266,"title":"NR error: \"Stretchy::Errors::ValidationError\" in QueryBuilder::search_location","user":{"login":"yozlet","id":173848,"avatar_url":"https://avatars.githubusercontent.com/u/173848?v=3","gravatar_id":"","url":"https://api.github.com/users/yozlet","html_url":"https://github.com/yozlet","followers_url":"https://api.github.com/users/yozlet/followers","following_url":"https://api.github.com/users/yozlet/following{/other_user}","gists_url":"https://api.github.com/users/yozlet/gists{/gist_id}","starred_url":"https://api.github.com/users/yozlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozlet/subscriptions","organizations_url":"https://api.github.com/users/yozlet/orgs","repos_url":"https://api.github.com/users/yozlet/repos","events_url":"https://api.github.com/users/yozlet/events{/privacy}","received_events_url":"https://api.github.com/users/yozlet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/18F/open-data-maker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/18F/open-data-maker/labels/from%20New%20Relic","name":"from New Relic","color":"5319e7"},{"url":"https://api.github.com/repos/18F/open-data-maker/labels/Needs%20Failing%20Spec","name":"Needs Failing Spec","color":"990033"}],"state":"closed","locked":false,"assignee":{"login":"yozlet","id":173848,"avatar_url":"https://avatars.githubusercontent.com/u/173848?v=3","gravatar_id":"","url":"https://api.github.com/users/yozlet","html_url":"https://github.com/yozlet","followers_url":"https://api.github.com/users/yozlet/followers","following_url":"https://api.github.com/users/yozlet/following{/other_user}","gists_url":"https://api.github.com/users/yozlet/gists{/gist_id}","starred_url":"https://api.github.com/users/yozlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozlet/subscriptions","organizations_url":"https://api.github.com/users/yozlet/orgs","repos_url":"https://api.github.com/users/yozlet/repos","events_url":"https://api.github.com/users/yozlet/events{/privacy}","received_events_url":"https://api.github.com/users/yozlet/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-08T23:36:27Z","updated_at":"2016-02-25T00:16:20Z","closed_at":"2016-02-25T00:16:20Z","body":"[New Relic example](https://rpm.newrelic.com/accounts/1065766/applications/8349766/filterable_errors#/show/bb31c3-27d06acf-b330-11e5-9286-b82a72d2466d/stack_trace?top_facet=transactionUiName&primary_facet=error.class&_k=0a4gzz). Frequency: 3 times from Jan 1 to Jan 7.\r\n\r\nStack trace:\r\n```ruby\r\n…0/gems/stretchy-0.4.7/lib/stretchy/utils/validation.rb:   16:in `validate!'\r\n…gems/stretchy-0.4.7/lib/stretchy/filters/geo_filter.rb:   22:in `initialize'\r\n…stretchy-0.4.7/lib/stretchy/builders/filter_builder.rb:   33:in `new'\r\n…stretchy-0.4.7/lib/stretchy/builders/filter_builder.rb:   33:in `add_geo'\r\n…/stretchy-0.4.7/lib/stretchy/builders/where_builder.rb:   45:in `add_geo'\r\n…ms/stretchy-0.4.7/lib/stretchy/clauses/where_clause.rb:  135:in `geo'         /home/vcap/app/lib/data_magic/query_builder.rb:  132:in `search_location'\r\n         /home/vcap/app/lib/data_magic/query_builder.rb:   30:in `generate_squery'\r\n         /home/vcap/app/lib/data_magic/query_builder.rb:   13:in `from_params'\r\n                       /home/vcap/app/lib/data_magic.rb:   69:in `search'\r\n                      /home/vcap/app/app/controllers.rb:   53:in `block (2 levels) in <top (required)>'\r\n(eval):225:in `block in call'\r\n(eval):214:in `catch'\r\n```\r\n\r\nRefers to [this line](https://github.com/18F/open-data-maker/blob/a5c5a18381214d3a51ab54152b463727bb3f79bc/lib/data_magic/query_builder.rb#L132): \r\n```ruby\r\nsquery = squery.geo('location', distance: distance, lat: location[:lat], lng: location[:lon])\r\n```\r\n\r\n(May be related to #265, somehow? But the occurrences of this error happen at completely different times)"},"comment":{"url":"https://api.github.com/repos/18F/open-data-maker/issues/comments/188529984","html_url":"https://github.com/18F/open-data-maker/issues/266#issuecomment-188529984","issue_url":"https://api.github.com/repos/18F/open-data-maker/issues/266","id":188529984,"user":{"login":"yozlet","id":173848,"avatar_url":"https://avatars.githubusercontent.com/u/173848?v=3","gravatar_id":"","url":"https://api.github.com/users/yozlet","html_url":"https://github.com/yozlet","followers_url":"https://api.github.com/users/yozlet/followers","following_url":"https://api.github.com/users/yozlet/following{/other_user}","gists_url":"https://api.github.com/users/yozlet/gists{/gist_id}","starred_url":"https://api.github.com/users/yozlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozlet/subscriptions","organizations_url":"https://api.github.com/users/yozlet/orgs","repos_url":"https://api.github.com/users/yozlet/repos","events_url":"https://api.github.com/users/yozlet/events{/privacy}","received_events_url":"https://api.github.com/users/yozlet/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T00:16:20Z","updated_at":"2016-02-25T00:16:20Z","body":"Fixed by #286."}}