Closed tDorosheff closed 7 years ago
I think the issue is in the config here
config.google_developer_key = ENV["AIzaSyB1s7rG4O2T6iyRiJIooFwdKojgiwFZpW4"] config.google_cx = ENV["006080577954105511262:4qngovjre4k"]
ENV is short for envionrment variable. If you are not storing your code as envionrment variables you'll want to just set the value to a string.
config.google_developer_key = "AIzaSyB1s7rG4O2T6iyRiJIooFwdKojgiwFZpW4"
Thanks Andy, that worked! Im gonna have some more questions to shoot you soon most likely, specifically related to using the rails console to bulk create tasks like i did in the past on V1 with searches. Although maybe there is some cool new Scumblr V2 feature that i dont know about yet that allows me to bulk create tasks?
Hi @tDorosheff,
We haven't made any changes to bulk task creation, so the rails console will be the best option for those use cases.
Thanks, Scott
Hey Andy, im back at scumblr 2.0 with the latest code pulled. When attempting to execute a google search through the UI, i get the following error:
Unable to run task google pastebin "aol.com". Error: undefined method
[]' for nil:NilClass ["/home/ubuntu/Scumblr/lib/search_providers/provider.rb:113:increate_event'", "/home/ubuntu/Scumblr/lib/search_providers/provider.rb:92:in
create_error'", "/home/ubuntu/Scumblr/lib/search_providers/provider.rb:33:inblock in initialize'", "/home/ubuntu/Scumblr/lib/search_providers/provider.rb:30:in
each'", "/home/ubuntu/Scumblr/lib/search_providers/provider.rb:30:ininitialize'", "/home/ubuntu/Scumblr/lib/search_providers/google.rb:73:in
initialize'", "/home/ubuntu/Scumblr/app/models/task.rb:137:innew'", "/home/ubuntu/Scumblr/app/models/task.rb:137:in
perform_task'", "/home/ubuntu/Scumblr/app/workers/task_worker.rb:30:inperform'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:155:in
execute_job'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:136:inblock (3 levels) in process'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/chain.rb:128:in
block in invoke'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-status-0.6.0/lib/sidekiq-status/server_middleware.rb:37:incall'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/chain.rb:130:in
block in invoke'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/server/active_record.rb:6:incall'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/chain.rb:130:in
block in invoke'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/server/retry_jobs.rb:74:incall'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/chain.rb:130:in
block in invoke'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/server/logging.rb:11:inblock in call'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/logging.rb:32:in
with_context'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/server/logging.rb:7:incall'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/chain.rb:130:in
block in invoke'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/middleware/chain.rb:133:ininvoke'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:131:in
block (2 levels) in process'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:171:instats'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:130:in
block in process'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq.rb:35:inblock in <module:Sidekiq>'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:122:in
process'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:81:inprocess_one'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/processor.rb:69:in
run'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/util.rb:17:inwatchdog'", "/home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sidekiq-4.2.3/lib/sidekiq/util.rb:25:in
block in safe_thread'"]`Have configured the google api key and cx key in scumblr.rb, here is what my google search section of scumblr.rb looks like:
# Google config.google_application_name = ENV["Scumblr"] config.google_application_version = ENV["1.0"] config.google_developer_key = ENV["AIzaSyB1s7rG4O2T6iyRiJIooFwdKojgiwFZpW4"] config.google_cx = ENV["006080577954105511262:4qngovjre4k"]
Everything during the setup process went perfectly fine, no errors of any kind. Just finished setting it up today.