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

uninitialized constant URI::HTTP #73

Open
bjpcjp opened this issue Feb 14, 2023 · 1 comment
Open

uninitialized constant URI::HTTP #73

bjpcjp opened this issue Feb 14, 2023 · 1 comment

Comments

@bjpcjp
Copy link

bjpcjp commented Feb 14, 2023

FATAL -- github_spider: Spider: stopped: {:spider_name=>"github_spider", :status=>:failed, :error=>"#<NameError: uninitialized constant URI::HTTP>", :environment=>"development", :start_time=>2023-02-14 10:01:02.268793288 -0500, :stop_time=>2023-02-14 10:01:02.26942778 -0500, :running_time=>"0s", :visits=>{:requests=>0, :responses=>0}, :items=>{:sent=>0, :processed=>0}, :events=>{:requests_errors=>{}, :drop_items_errors=>{}, :custom=>{}}}
/var/lib/gems/3.0.0/gems/kimurai-1.4.0/lib/kimurai/base.rb:194:in request_to': uninitialized constant URI::HTTP (NameError) from /var/lib/gems/3.0.0/gems/kimurai-1.4.0/lib/kimurai/base.rb:128:in block in crawl!'
from /var/lib/gems/3.0.0/gems/kimurai-1.4.0/lib/kimurai/base.rb:124:in each' from /var/lib/gems/3.0.0/gems/kimurai-1.4.0/lib/kimurai/base.rb:124:in crawl!'
from github_spider.rb:40:in `

'

@matt17r
Copy link

matt17r commented Apr 27, 2023

Your post isn't clear but I'm guessing you're seeing this when you try to run the GithubSpider example from the README?

If so, try adding require "uri" after the first require and see if that helps

# github_spider.rb
require 'kimurai'
require 'uri'

...

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

2 participants