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

Fields param in url without a value gives this error #25

Open
thomax opened this issue Apr 5, 2013 · 0 comments
Open

Fields param in url without a value gives this error #25

thomax opened this issue Apr 5, 2013 · 0 comments

Comments

@thomax
Copy link

thomax commented Apr 5, 2013

See this exception on Errbit

NoMethodError: undefined method `each' for nil:NilClass

Summary

URL

http://dna.o5.no/api/sherlock/v1/search/dna/associate:dna.org.*?&fields[id]=340106&fields&session=velkomatapplicationfb8f11e86ad57bfd66312300e82efa7d3895954b4537317689a0960e35c67076&limit=10000"

Where

unknown

Occured

Mar 27 7:50pm

Similar

4

Params

{
  "key" => "fields",
  "limit" => "10000",
  "session" => "velkomatapplicationfb8f11e86ad57bfd66312300e82efa7d3895954b4537317689a0960e35c67076"
}

Session

{
}

Backtrace

76:  lib/sherlock/query.rb -> **field_queries**
53:  lib/sherlock/query.rb -> **bool_query**
27:  lib/sherlock/query.rb -> **to_hash**
142:  lib/sherlock/query.rb -> **to_json**
86:  lib/sherlock/elasticsearch.rb -> **query**
63:  api/v1/search.rb -> **block in <class:SherlockV1>**
1292:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **call**
1292:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in compile!**
860:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **[]**
860:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block (3 levels) in route!**
876:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **route_eval**
860:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block (2 levels) in route!**
897:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in process_route**
895:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **catch**
895:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **process_route**
859:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in route!**
858:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **each**
858:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **route!**
963:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in dispatch!**
946:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in invoke**
946:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **catch**
946:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **invoke**
960:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **dispatch!**
794:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in call!**
946:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in invoke**
946:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **catch**
946:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **invoke**
794:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **call!**
780:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **call**
27:  [GEM_ROOT]/gems/rack-protection-1.3.2/lib/rack/protection/xss_header.rb -> **call**
16:  [GEM_ROOT]/gems/rack-protection-1.3.2/lib/rack/protection/path_traversal.rb -> **call**
17:  [GEM_ROOT]/gems/rack-protection-1.3.2/lib/rack/protection/json_csrf.rb -> **call**
48:  [GEM_ROOT]/gems/rack-protection-1.3.2/lib/rack/protection/base.rb -> **call**
48:  [GEM_ROOT]/gems/rack-protection-1.3.2/lib/rack/protection/base.rb -> **call**
27:  [GEM_ROOT]/gems/rack-protection-1.3.2/lib/rack/protection/xss_header.rb -> **call**
9:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/nulllogger.rb -> **call**
11:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/head.rb -> **call**
124:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **call**
1417:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **block in call**
1499:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **synchronize**
1417:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **call**
30:  [PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bundler/gems/pebbles-cors-d51dc16e96bb/lib/pebbles-cors.rb -> **call**
21:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/methodoverride.rb -> **call**
35:  [PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bundler/gems/rack-contrib-b7e7c38fd02c/lib/rack/contrib/post_body_content_type_parser.rb -> **call**
138:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/builder.rb -> **call**
65:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/urlmap.rb -> **block in call**
50:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/urlmap.rb -> **each**
50:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/urlmap.rb -> **call**
33:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/commonlogger.rb -> **call**
161:  [GEM_ROOT]/gems/sinatra-1.3.4/lib/sinatra/base.rb -> **call**
19:  /srv/sherlock/shared/config/unicorn.rb -> **call**
138:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/builder.rb -> **call**
65:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/urlmap.rb -> **block in call**
50:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/urlmap.rb -> **each**
50:  [GEM_ROOT]/gems/rack-1.5.2/lib/rack/urlmap.rb -> **call**
528:  [GEM_ROOT]/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **process_client**
600:  [GEM_ROOT]/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **worker_loop**
485:  [GEM_ROOT]/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **spawn_missing_workers**
135:  [GEM_ROOT]/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **start**
121:  [GEM_ROOT]/gems/unicorn-4.1.1/bin/unicorn -> **<top (required)>**
23:  [PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bin/unicorn -> **load**
23:  [PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/bin/unicorn -> **<main>**

Environment

REMOTE_ADDR: 127.0.0.1
REQUEST_METHOD: GET
REQUEST_PATH: /api/sherlock/v1/search/dna/associate:dna.org.*
PATH_INFO: /search/dna/associate:dna.org.*
QUERY_STRING: &fields[id]=340106&fields&session=velkomatapplicationfb8f11e86ad57bfd66312300e82efa7d3895954b4537317689a0960e35c67076&limit=10000
REQUEST_URI: /api/sherlock/v1/search/dna/associate:dna.org.*?&fields[id]=340106&fields&session=velkomatapplicationfb8f11e86ad57bfd66312300e82efa7d3895954b4537317689a0960e35c67076&limit=10000
SERVER_PROTOCOL: HTTP/1.0
HTTP_VERSION: HTTP/1.0
HTTP_HOST: sherlock.o5.no
HTTP_CONNECTION: close
HTTP_X_FORWARDED_HOST: dna.o5.no
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Firefox/20.0
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_COOKIE: checkpoint.session=rcmdewlyeq2me2c2cuxoyv8n8fawuhg2sx0su98u9yzx97pupwu69lvz0ylqyofwaw9yvj6jrg65sykp6zd4g0ywdvzsy1fnopf
HTTP_X_FORWARDED_FOR: 88.88.227.33
rack_url_scheme: http
SERVER_NAME: sherlock.o5.no
SERVER_PORT: 80
rack_input: #
rack_errors: #
rack_multiprocess: true
rack_multithread: false
rack_run_once: false
rack_version: ["1", "1"]
SCRIPT_NAME: /api/sherlock/v1
SERVER_SOFTWARE: Unicorn 4.1.1
rack_logger: #
sinatra_commonlogger: true
rack_request_query_string: &fields[id]=340106&fields&session=velkomatapplicationfb8f11e86ad57bfd66312300e82efa7d3895954b4537317689a0960e35c67076&limit=10000
rack_request_query_hash: {"key"=>"fields", "session"=>"velkomatapplicationfb8f11e86ad57bfd66312300e82efa7d3895954b4537317689a0960e35c67076", "limit"=>"10000"}
sinatra_error: undefined method `each' for nil:NilClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant