{"action":"created","issue":{"url":"https://api.github.com/repos/flapjack/flapjack-diner/issues/56","repository_url":"https://api.github.com/repos/flapjack/flapjack-diner","labels_url":"https://api.github.com/repos/flapjack/flapjack-diner/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/flapjack/flapjack-diner/issues/56/comments","events_url":"https://api.github.com/repos/flapjack/flapjack-diner/issues/56/events","html_url":"https://github.com/flapjack/flapjack-diner/issues/56","id":179866377,"number":56,"title":"Error going to second page","user":{"login":"Ferbla","id":3639292,"avatar_url":"https://avatars.githubusercontent.com/u/3639292?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferbla","html_url":"https://github.com/Ferbla","followers_url":"https://api.github.com/users/Ferbla/followers","following_url":"https://api.github.com/users/Ferbla/following{/other_user}","gists_url":"https://api.github.com/users/Ferbla/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferbla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferbla/subscriptions","organizations_url":"https://api.github.com/users/Ferbla/orgs","repos_url":"https://api.github.com/users/Ferbla/repos","events_url":"https://api.github.com/users/Ferbla/events{/privacy}","received_events_url":"https://api.github.com/users/Ferbla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-28T19:32:20Z","updated_at":"2016-09-29T12:57:53Z","closed_at":"2016-09-28T23:45:39Z","body":"When I try and go to any page other than the first page on checks, I get the following error. Here is an example url that I would go to. http://flapjack:3080/checks?page=2\r\n\r\n> 2016-09-28 14:10:16 - ArgumentError - '2' must be an Integer greater than 0.:\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/argument_validator.rb:22:in 'validate'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/request.rb:22:in 'block (2 levels) in initialize'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/request.rb:22:in 'each_pair'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/request.rb:22:in 'block in initialize'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/query.rb:16:in 'instance_eval'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/query.rb:16:in 'validate_params'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/request.rb:21:in 'initialize'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/resources.rb:27:in 'new'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-diner-2.0.0b1/lib/flapjack-diner/resources.rb:27:in 'block (3 levels) in included'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-2.0.0/lib/flapjack/gateways/web.rb:251:in 'block in <class:Web>'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in 'block in compile!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in '[]'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in 'block (3 levels) in route!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in 'route_eval'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in 'block (2 levels) in route!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in 'block in process_route'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in 'catch'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in 'process_route'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in 'block in route!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in 'each'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in 'route!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in 'block in dispatch!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in 'block in invoke'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in 'catch'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in 'invoke'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in 'dispatch!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in 'block in call!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in 'block in invoke'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in 'catch'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in 'invoke'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in 'call!'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in 'context'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/commonlogger.rb:33:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:219:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/flapjack-2.0.0/lib/flapjack/gateways/web/middleware/request_timestamp.rb:12:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in 'context'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/nulllogger.rb:9:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/head.rb:13:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in 'block in call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in 'synchronize'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/puma-3.6.0/lib/puma/server.rb:578:in 'handle_request'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/puma-3.6.0/lib/puma/server.rb:415:in 'process_client'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/puma-3.6.0/lib/puma/server.rb:275:in 'block in run'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/puma-3.6.0/lib/puma/thread_pool.rb:116:in 'call'\r\n> /usr/local/rvm/gems/ruby-2.2.2/gems/puma-3.6.0/lib/puma/thread_pool.rb:116:in 'block in spawn_thread'\r\n\r\nRunning version 2.0 of Flapjack."},"comment":{"url":"https://api.github.com/repos/flapjack/flapjack-diner/issues/comments/250458382","html_url":"https://github.com/flapjack/flapjack-diner/issues/56#issuecomment-250458382","issue_url":"https://api.github.com/repos/flapjack/flapjack-diner/issues/56","id":250458382,"user":{"login":"Ferbla","id":3639292,"avatar_url":"https://avatars.githubusercontent.com/u/3639292?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferbla","html_url":"https://github.com/Ferbla","followers_url":"https://api.github.com/users/Ferbla/followers","following_url":"https://api.github.com/users/Ferbla/following{/other_user}","gists_url":"https://api.github.com/users/Ferbla/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferbla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferbla/subscriptions","organizations_url":"https://api.github.com/users/Ferbla/orgs","repos_url":"https://api.github.com/users/Ferbla/repos","events_url":"https://api.github.com/users/Ferbla/events{/privacy}","received_events_url":"https://api.github.com/users/Ferbla/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T12:57:53Z","updated_at":"2016-09-29T12:57:53Z","body":"@ali-graham perfect thanks."}}
{"actor":{"display_login":"Ferbla"}}