Created
May 16, 2016 04:01
-
-
Save angelacode/59b91a9d45e4a5e17faeb2860a8b71a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:timestamp=>1463371169, | |
:environment=>"development", | |
:level=>"error", | |
:language=>"ruby", | |
:framework=>"ruby", | |
:server=>{:host=>"ruby-100042", :pid=>22381}, | |
:notifier=>{:name=>"rollbar-gem", :version=>"2.2.1"}, | |
:body=> | |
{:trace=> | |
{:frames=> | |
[{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>48, | |
:method=>"block in ensure_reactor_running"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run_machine"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/client.rb", | |
:lineno=>77, | |
:method=>"receive_data"}, | |
{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>19, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>134, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/client.rb", | |
:lineno=>63, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>121, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>383, | |
:method=>"emit_frame"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>400, | |
:method=>"emit_message"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"block in emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>38, | |
:method=>"block in initialize"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>95, | |
:method=>"receive_message"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api/event_target.rb", | |
:lineno=>44, | |
:method=>"dispatch_event"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"block in emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>115, | |
:method=>"block (2 levels) in run_loop"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>188, | |
:method=>"run_callbacks"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>188, | |
:method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>189, | |
:method=>"block in run_callbacks"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>189, | |
:method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/kaya_slack.rb", :lineno=>202, :method=>"block in run"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>198, :method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>593, :method=>"read_tags"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>593, :method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>615, :method=>"block in read_tags"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>733, :method=>"switch_by_tag"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>1442, :method=>"act_on_search_tag"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/byebug-8.2.2/lib/byebug/context.rb", :lineno=>96, :method=>"at_line"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>55, | |
:method=>"at_line"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>103, | |
:method=>"resume_pry"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>27, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>27, | |
:method=>"catch"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>28, | |
:method=>"block in run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
➜ ~ | |
?h?? | |
➜ ~ cd code/site | |
➜ site git:(master) ✗ ls | |
config cron_log.log Gemfile.lock kaya_utilities.rb public spec-backup views | |
coverage deploy_commit_aiml.rb iron.io personality sass stylesheets web_post.rb | |
cron.log Gemfile kaya-nitrous.wiki Procfile spec test_aiml.rb | |
➜ site git:(master) ✗ ENVIRONMENT=development bundle exec irb | |
irb(main):001:0> exit | |
➜ site git:(master) ✗ ENVIRONMENT=development bundle exec ruby iron.io/run_kaya_slack.rb | |
ok=true, team=HelloKaya, team_id=T060BSMNC, url=https://hellokaya.slack.com/, user=kayadev, user_id=U0PVCHF8E | |
Frame number: 0/26 | |
From: /home/nitrous/code/site/iron.io/bot_response.rb @ line 1440 BotResponse#act_on_search_tag: | |
1435: logger.debug limit | |
1436: logger.debug sort | |
1437: | |
1438: binding.pry | |
1439: | |
=> 1440: response_array = @orchestrate_io_object.search_by_query_return_array(query, limit, sort) | |
1441: | |
1442: logger.debug response_array | |
1443: # once this works enable this in my AIML | |
1444: | |
1445: | |
[1] pry(#<BotResponse>)> limit = 10 | |
=> 10 | |
[2] pry(#<BotResponse>)> sort | |
=> "value.time_string:asc" | |
[3] pry(#<BotResponse>)> query | |
=> "value.status: 'active' AND value.recurring: 'true'" | |
[4] pry(#<BotResponse>)> next | |
I, [2016-05-16T03:45:38.422343 #21936] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:45:38.422632 #21936] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:45:38.671655 #21936] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:45:38.672040 #21936] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=3f6eda01-53bf-40ed-b2ac-38b2d40d0a20 (only available if report was successful) | |
From: /home/nitrous/code/site/iron.io/bot_response.rb @ line 1442 BotResponse#act_on_search_tag: | |
1437: | |
1438: binding.pry | |
1439: | |
1440: response_array = @orchestrate_io_object.search_by_query_return_array(query, limit, sort) | |
1441: | |
=> 1442: logger.debug response_array | |
1443: # once this works enable this in my AIML | |
1444: | |
1445: | |
1446: #line_format = '#{item["value"]["time_string"]} - #{item["value"]["keyword"]}' | |
1447: if list_format.present? | |
[4] pry(#<BotResponse>):1> ruby -v | |
NameError: undefined local variable or method `v' for #<BotResponse:0x00000004223658> | |
from (pry):4:in `act_on_search_tag' | |
[5] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array) | |
=> #<Method: OrchestrateIo#search_by_query_return_array> | |
[6] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).methods | |
=> [:==, | |
:eql?, | |
:hash, | |
:clone, | |
:call, | |
:[], | |
:arity, | |
:inspect, | |
:to_s, | |
:to_proc, | |
:receiver, | |
:name, | |
:original_name, | |
:owner, | |
:unbind, | |
:source_location, | |
:parameters, | |
:duplicable?, | |
:source, | |
:comment, | |
:acts_like?, | |
:blank?, | |
:present?, | |
:presence, | |
:to_param, | |
:to_query, | |
:try, | |
:try!, | |
:`, | |
:deep_dup, | |
:itself, | |
:in?, | |
:presence_in, | |
:instance_values, | |
:instance_variable_names, | |
:to_json_with_active_support_encoder, | |
:to_json_without_active_support_encoder, | |
:to_json, | |
:as_json, | |
:with_options, | |
:html_safe?, | |
:psych_to_yaml, | |
:to_yaml, | |
:to_yaml_properties, | |
:dclone, | |
:pry, | |
:__binding__, | |
:pretty_print, | |
:pretty_print_cycle, | |
:pretty_print_instance_variables, | |
:pretty_print_inspect, | |
:nil?, | |
:===, | |
:=~, | |
:!~, | |
:<=>, | |
:class, | |
:singleton_class, | |
:dup, | |
:taint, | |
:tainted?, | |
:untaint, | |
:untrust, | |
:untrusted?, | |
:trust, | |
:freeze, | |
:frozen?, | |
:methods, | |
:singleton_methods, | |
:protected_methods, | |
:private_methods, | |
:public_methods, | |
:instance_variables, | |
:instance_variable_get, | |
:instance_variable_set, | |
:instance_variable_defined?, | |
:remove_instance_variable, | |
:instance_of?, | |
:kind_of?, | |
:is_a?, | |
:tap, | |
:send, | |
:public_send, | |
:respond_to?, | |
:extend, | |
:display, | |
:method, | |
:public_method, | |
:singleton_method, | |
:define_singleton_method, | |
:object_id, | |
:to_enum, | |
:enum_for, | |
:gem, | |
:class_eval, | |
:silence_warnings, | |
:enable_warnings, | |
:with_warnings, | |
:silence_stderr, | |
:silence_stream, | |
:suppress, | |
:capture, | |
:silence, | |
:quietly, | |
:concern, | |
:pretty_inspect, | |
:byebug, | |
:debugger, | |
:equal?, | |
:!, | |
:!=, | |
:instance_eval, | |
:instance_exec, | |
:__send__, | |
:__id__] | |
[7] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).methods.pretty_inspect | |
=> "[:==,\n :eql?,\n :hash,\n :clone,\n :call,\n :[],\n :arity,\n :inspect,\n :to_s,\n :to_proc,\n :receiver,\n :name,\n :original_name,\n :owner,\n :unbind,\n :source_location,\n :parameters,\n :duplicable?,\n :source,\n :comment,\n :acts_like?,\n :blank?,\n :present?,\n :presence,\n :to_param,\n :to_query,\n :try,\n :try!,\n :`,\n :deep_dup,\n :itself,\n :in?,\n :presence_in,\n :instance_values,\n :instance_variable_names,\n :to_json_with_active_support_encoder,\n :to_json_without_active_support_encoder,\n :to_json,\n :as_json,\n :with_options,\n :html_safe?,\n :psych_to_yaml,\n :to_yaml,\n :to_yaml_properties,\n :dclone,\n :pry,\n :__binding__,\n :pretty_print,\n :pretty_print_cycle,\n :pretty_print_instance_variables,\n :pretty_print_inspect,\n :nil?,\n :===,\n :=~,\n :!~,\n :<=>,\n :class,\n :singleton_class,\n :dup,\n :taint,\n :tainted?,\n :untaint,\n :untrust,\n :untrusted?,\n :trust,\n :freeze,\n :frozen?,\n :methods,\n :singleton_methods,\n :protected_methods,\n :private_methods,\n :public_methods,\n :instance_variables,\n :instance_variable_get,\n :instance_variable_set,\n :instance_variable_defined?,\n :remove_instance_variable,\n :instance_of?,\n :kind_of?,\n :is_a?,\n :tap,\n :send,\n :public_send,\n :respond_to?,\n :extend,\n :display,\n :method,\n :public_method,\n :singleton_method,\n :define_singleton_method,\n :object_id,\n :to_enum,\n :enum_for,\n :gem,\n :class_eval,\n :silence_warnings,\n :enable_warnings,\n :with_warnings,\n :silence_stderr,\n :silence_stream,\n :suppress,\n :capture,\n :silence,\n :quietly,\n :concern,\n :pretty_inspect,\n :byebug,\n :debugger,\n :equal?,\n :!,\n :!=,\n :instance_eval,\n :instance_exec,\n :__send__,\n :__id__]\n" | |
[8] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).methods.arity | |
NoMethodError: undefined method `arity' for #<Array:0x00000003d4d7f0> | |
from (pry):8:in `act_on_search_tag' | |
[9] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).method.arity | |
ArgumentError: wrong number of arguments (0 for 1) | |
from (pry):9:in `method' | |
[10] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).arity | |
=> -2 | |
[11] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).inspect | |
=> "#<Method: OrchestrateIo#search_by_query_return_array>" | |
[12] pry(#<BotResponse>):1> @orchestrate_io_object.method(:search_by_query_return_array).parameters | |
=> [[:req, :query], [:opt, :limit], [:opt, :sort]] | |
[13] pry(#<BotResponse>):1> @orchestrate_io_object.search_by_query_return_array("value.name: 'tim'") | |
I, [2016-05-16T03:50:11.553992 #21936] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:50:11.554126 #21936] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:50:11.818067 #21936] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:50:11.818250 #21936] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=56ddf96d-274b-4826-9e09-3b797e770918 (only available if report was successful) | |
=> {:timestamp=>1463370611, | |
:environment=>"development", | |
:level=>"error", | |
:language=>"ruby", | |
:framework=>"ruby", | |
:server=>{:host=>"ruby-100042", :pid=>21936}, | |
:notifier=>{:name=>"rollbar-gem", :version=>"2.2.1"}, | |
:body=> | |
{:trace=> | |
{:frames=> | |
[{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>48, | |
:method=>"block in ensure_reactor_running"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run_machine"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/client.rb", | |
:lineno=>77, | |
:method=>"receive_data"}, | |
{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>19, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>134, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/client.rb", | |
:lineno=>63, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>121, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>383, | |
:method=>"emit_frame"}, | |
[14] pry(#<BotResponse>):1> exit | |
=> #<BotResponse:0x00000004223658 | |
@api_response= | |
{"status"=>"ok", | |
"responses"=> | |
["Here is your recurring schedule: \n\n X-LINE-BREAK.\n\n \n \n\n <XTEST>CL KAYA SEARCH COLLECTION</XTEST>\n \n <SEARCH>\n <COLLECTION>schedules</COLLECTION>\n <QUERY>value.status: 'active' AND value.recurring: 'true'</QUERY>\n <LIST-FORMAT>\#{index}: \#{item['value']['time_string']} - \#{item['value']['keyword']} - \#{item['value']['via']}</LIST-FORMAT>\n <REPLACE-KEY>replace-schedule</REPLACE-KEY>\n <LIMIT>100</LIMIT>\n <SORT>value.time_string:asc</SORT>\n </SEARCH>\n\n \n\n replace-schedule"], | |
"inputs"=>["cl kaya what is my recurring schedule"], | |
"patterns"=>["CL KAYA WHAT IS MY RECURRING SCHEDULE"], | |
"thats"=>["TRUE"], | |
"topics"=>["HELLO"], | |
"filenames"=>["common_library"], | |
"templates"=> | |
["\n<template>\n Here is your recurring schedule: \n X-LINE-BREAK.\n <srai>\n CL KAYA SEARCH COLLECTION schedules QUERY value.status: 'active' AND value.recurring: 'true' FORMAT \#{index}: \#{item['value']['time_string']} - \#{item['value']['keyword']} - \#{item['value']['via']} REPLACE replace-schedule LIMIT 100 SORT value.time_string:asc\n </srai>\n replace-schedule\n</template>"], | |
"sessionid"=>19130812}, | |
@bot_client_id="aiaas-1409611358153-user-0018", | |
@filename="common_library", | |
@inbound_text="cl kaya what is my recurring schedule", | |
@initial_that=nil, | |
@iron_client= | |
#<IronCache::Client:0x000000042238d8 | |
@api_version=1, | |
@cache_name="default", | |
@content_type="application/json", | |
@env=nil, | |
@host="cache-aws-us-east-1.iron.io", | |
@logger= | |
#<Logger:0x000000041e6500 | |
@default_formatter=#<Logger::Formatter:0x000000041e64d8 @datetime_format=nil>, | |
@formatter=nil, | |
@level=1, | |
@logdev= | |
#<Logger::LogDevice:0x000000041e6460 | |
[15] pry(#<BotResponse>)> exit | |
I, [2016-05-16T03:50:46.321659 #21936] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:50:46.321815 #21936] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:50:46.634448 #21936] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:50:46.634639 #21936] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=dbd55d7c-d755-499a-a012-a694a80674e6 (only available if report was successful) | |
^C% ➜ site git:(master) ✗ ruby -v | |
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux] | |
➜ site git:(master) ✗ | |
➜ site git:(master) ✗ ENVIRONMENT=development bundle exec ruby iron.io/run_kaya_slack.rb | |
ok=true, team=HelloKaya, team_id=T060BSMNC, url=https://hellokaya.slack.com/, user=kayadev, user_id=U0PVCHF8E | |
Frame number: 0/26 | |
From: /home/nitrous/code/site/iron.io/bot_response.rb @ line 1440 BotResponse#act_on_search_tag: | |
1435: logger.debug limit | |
1436: logger.debug sort | |
1437: | |
1438: binding.pry | |
1439: | |
=> 1440: response_array = @orchestrate_io_object.search_by_query_return_array(query, limit, sort) | |
1441: | |
1442: logger.debug response_array | |
1443: # once this works enable this in my AIML | |
1444: | |
1445: | |
[1] pry(#<BotResponse>)> response_array = @orchestrate_io_object.search_by_query_return_array(query) | |
I, [2016-05-16T03:56:08.107267 #22318] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:56:08.107477 #22318] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:56:08.362911 #22318] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:56:08.363097 #22318] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=8403c297-4212-4a39-9735-8f7878317ce3 (only available if report was successful) | |
=> {:timestamp=>1463370968, | |
:environment=>"development", | |
:level=>"error", | |
:language=>"ruby", | |
:framework=>"ruby", | |
:server=>{:host=>"ruby-100042", :pid=>22318}, | |
:notifier=>{:name=>"rollbar-gem", :version=>"2.2.1"}, | |
:body=> | |
{:trace=> | |
{:frames=> | |
[{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>48, | |
:method=>"block in ensure_reactor_running"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run_machine"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/client.rb", | |
:lineno=>77, | |
:method=>"receive_data"}, | |
{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>19, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>134, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/client.rb", | |
:lineno=>63, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>121, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>383, | |
:method=>"emit_frame"}, | |
[2] pry(#<BotResponse>)> @orchestrate_io_object.method(:search_by_query_return_array).parameters | |
=> [[:req, :query]] | |
[3] pry(#<BotResponse>)> exit | |
I, [2016-05-16T03:57:42.008626 #22318] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:57:42.008799 #22318] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:57:42.279412 #22318] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:57:42.279595 #22318] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=2ef2c756-d5aa-4dde-b771-1f5712b12917 (only available if report was successful) | |
^C% ➜ site git:(master) ✗ ENVIRONMENT=development bundle exec ruby iron.io/run_kaya_slack.rb | |
ok=true, team=HelloKaya, team_id=T060BSMNC, url=https://hellokaya.slack.com/, user=kayadev, user_id=U0PVCHF8E | |
Frame number: 0/26 | |
From: /home/nitrous/code/site/iron.io/bot_response.rb @ line 1440 BotResponse#act_on_search_tag: | |
1435: logger.debug limit | |
1436: logger.debug sort | |
1437: | |
1438: binding.pry | |
1439: | |
=> 1440: response_array = @orchestrate_io_object.search_by_query_return_array(query, limit, sort) | |
1441: | |
1442: logger.debug response_array | |
1443: # once this works enable this in my AIML | |
1444: | |
1445: | |
[1] pry(#<BotResponse>)> query | |
=> "value.status: 'active' AND value.recurring: 'true'" | |
[2] pry(#<BotResponse>)> limit | |
=> "100" | |
[3] pry(#<BotResponse>)> sort | |
=> "value.time_string:asc" | |
[4] pry(#<BotResponse>)> next | |
I, [2016-05-16T03:58:18.592727 #22381] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:58:18.593073 #22381] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:58:18.863321 #22381] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:58:18.863667 #22381] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=6eb6db6d-ba54-476b-89ee-3984f545f1ee (only available if report was successful) | |
From: /home/nitrous/code/site/iron.io/bot_response.rb @ line 1442 BotResponse#act_on_search_tag: | |
1437: | |
1438: binding.pry | |
1439: | |
1440: response_array = @orchestrate_io_object.search_by_query_return_array(query, limit, sort) | |
1441: | |
=> 1442: logger.debug response_array | |
1443: # once this works enable this in my AIML | |
1444: | |
1445: | |
1446: #line_format = '#{item["value"]["time_string"]} - #{item["value"]["keyword"]}' | |
1447: if list_format.present? | |
[4] pry(#<BotResponse>):1> query = "x" | |
=> "x" | |
[5] pry(#<BotResponse>):1> @orchestrate_io_object.search_by_query_return_array(query, limit, sort) | |
I, [2016-05-16T03:58:57.105786 #22381] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:58:57.105917 #22381] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:58:57.375254 #22381] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:58:57.375439 #22381] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=062fa20f-ad44-4362-980e-c2babd07d47e (only available if report was successful) | |
=> {:timestamp=>1463371137, | |
:environment=>"development", | |
:level=>"error", | |
:language=>"ruby", | |
:framework=>"ruby", | |
:server=>{:host=>"ruby-100042", :pid=>22381}, | |
:notifier=>{:name=>"rollbar-gem", :version=>"2.2.1"}, | |
:body=> | |
{:trace=> | |
{:frames=> | |
[{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>48, | |
:method=>"block in ensure_reactor_running"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run_machine"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/client.rb", | |
:lineno=>77, | |
:method=>"receive_data"}, | |
{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>19, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>134, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/client.rb", | |
:lineno=>63, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>121, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>383, | |
:method=>"emit_frame"}, | |
[6] pry(#<BotResponse>):1> @orchestrate_io_object.search_by_query_return_array("x") | |
ArgumentError: wrong number of arguments (1 for 2..3) | |
from /home/nitrous/code/site/iron.io/orchestrate_io.rb:201:in `search_by_query_return_array' | |
[7] pry(#<BotResponse>):1> @orchestrate_io_object.search_by_query_return_array("x", "y", "z") | |
I, [2016-05-16T03:59:29.076563 #22381] INFO -- : [Rollbar] Scheduling payload | |
I, [2016-05-16T03:59:29.080952 #22381] INFO -- : [Rollbar] Sending payload | |
I, [2016-05-16T03:59:29.331340 #22381] INFO -- : [Rollbar] Success | |
I, [2016-05-16T03:59:29.331558 #22381] INFO -- : [Rollbar] Details: https://rollbar.com/instance/uuid?uuid=547c82ec-6b50-42d9-993d-0133bfe4757f (only available if report was successful) | |
=> {:timestamp=>1463371169, | |
:environment=>"development", | |
:level=>"error", | |
:language=>"ruby", | |
:framework=>"ruby", | |
:server=>{:host=>"ruby-100042", :pid=>22381}, | |
:notifier=>{:name=>"rollbar-gem", :version=>"2.2.1"}, | |
:body=> | |
{:trace=> | |
{:frames=> | |
[{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>48, | |
:method=>"block in ensure_reactor_running"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/eventmachine-1.2.0.1/lib/eventmachine.rb", | |
:lineno=>194, | |
:method=>"run_machine"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/client.rb", | |
:lineno=>77, | |
:method=>"receive_data"}, | |
{:filename=> | |
"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/concurrency/eventmachine.rb", | |
:lineno=>19, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>134, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/client.rb", | |
:lineno=>63, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>121, | |
:method=>"parse"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>383, | |
:method=>"emit_frame"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/hybi.rb", | |
:lineno=>400, | |
:method=>"emit_message"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"block in emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>38, | |
:method=>"block in initialize"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api.rb", | |
:lineno=>95, | |
:method=>"receive_message"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/faye-websocket-0.9.2/lib/faye/websocket/api/event_target.rb", | |
:lineno=>44, | |
:method=>"dispatch_event"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>38, | |
:method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"block in emit"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/websocket-driver-0.6.3/lib/websocket/driver/event_emitter.rb", | |
:lineno=>39, | |
:method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>115, | |
:method=>"block (2 levels) in run_loop"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>169, | |
:method=>"dispatch"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>188, | |
:method=>"run_callbacks"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>188, | |
:method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>189, | |
:method=>"block in run_callbacks"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/slack-ruby-client-0.7.0/lib/slack/real_time/client.rb", | |
:lineno=>189, | |
:method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/kaya_slack.rb", :lineno=>202, :method=>"block in run"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>198, :method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>593, :method=>"read_tags"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>593, :method=>"each"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>615, :method=>"block in read_tags"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>733, :method=>"switch_by_tag"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/bot_response.rb", :lineno=>1442, :method=>"act_on_search_tag"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/byebug-8.2.2/lib/byebug/context.rb", :lineno=>96, :method=>"at_line"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>55, | |
:method=>"at_line"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>103, | |
:method=>"resume_pry"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>27, | |
:method=>"run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>27, | |
:method=>"catch"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>28, | |
:method=>"block in run"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-byebug-3.3.0/lib/byebug/processors/pry_processor.rb", | |
:lineno=>105, | |
:method=>"block in resume_pry"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", :lineno=>348, :method=>"repl"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/repl.rb", :lineno=>38, :method=>"start"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/input_lock.rb", | |
:lineno=>79, | |
:method=>"with_ownership"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/input_lock.rb", | |
:lineno=>61, | |
:method=>"__with_ownership"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/input_lock.rb", :lineno=>61, :method=>"call"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/repl.rb", :lineno=>38, :method=>"block in start"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/repl.rb", :lineno=>67, :method=>"repl"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/repl.rb", :lineno=>67, :method=>"loop"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/repl.rb", :lineno=>77, :method=>"block in repl"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", :lineno=>241, :method=>"eval"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", :lineno=>241, :method=>"catch"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", | |
:lineno=>242, | |
:method=>"block in eval"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", :lineno=>242, :method=>"catch"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", | |
:lineno=>243, | |
:method=>"block (2 levels) in eval"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", | |
:lineno=>323, | |
:method=>"handle_line"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", | |
:lineno=>355, | |
:method=>"evaluate_ruby"}, | |
{:filename=>"/home/nitrous/code/site/.bundle/gems/pry-0.10.3/lib/pry/pry_instance.rb", :lineno=>355, :method=>"eval"}, | |
{:filename=>"(pry)", :lineno=>7, :method=>"act_on_search_tag"}, | |
{:filename=>"/home/nitrous/code/site/iron.io/orchestrate_io.rb", :lineno=>209, :method=>"search_by_query_return_array"}], | |
:exception=>{:class=>"ArgumentError", :message=>"wrong number of arguments (1 for 0)"}, | |
:extra=> | |
{:self=> | |
"\"#\\u003cOrchestrateIo:0x00000004a44df0 @client=#\\u003cOrchestrate::Client api_key=5f1f545f... \\u003e, @app=#\\u003cOrchestrate::Application api_key=5f1f545f...\\u003e, @bot_client_id=\\\"aiaas-1409611358153-user-0018\\\", @collection=\\\"schedules\\\"\\u003e\""}}}, | |
: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment