Netflix-Skunkworks / Scumblr

Web framework that allows performing periodic syncs of data sources and performing analysis on the identified results
Apache License 2.0
2.64k stars 317 forks source link

No results from Google #122

Closed zeragual closed 7 years ago

zeragual commented 7 years ago

[7] pry(main)> SearchProvider::Google.new("scumblr").run NoMethodError: undefined method metadata' for nil:NilClass from /home/ubuntu/Scumblr/lib/search_providers/provider.rb:43:ininitialize'

sbehrens commented 7 years ago

Hi @zeragual I'm taking a look.

sbehrens commented 7 years ago

Bug is in provider.rb, no objects are being inherited (exp. @options is nil if you print that out in the create_event method). Confirmed @options is not-nil in base.rb if printed out in create_event method. @ahoernecke

sbehrens commented 7 years ago

@zeragual Can you pull master and try again? I have fixed the issue. Please re-open this ticket if you are still having issues after updating.

Also, I think your execution SearchProvider::Google.new("scumblr").run may result in some unexpected behaviors. After you define a Google search provider, you can test via the command line by running the following

Task.last.perform_task