Trying to open url in Hound and Chrome/ium -- Chrome isn't reachable

I’m trying to create a simple project-scraper.

In mix.exs I have this:

 {:hound, "~> 1.0"}]

And I’ve launched chrome driver:

 chromedriver &

Config:

 config :hound, driver: "chrome_driver"

But:

    use Hound.Helpers
    
    Hound.start_session()
    navigate_to("http://example.com")               
    ** (RuntimeError) chrome not reachable
      (Session info: chrome=58.0.3029.110)
      (Driver info: chromedriver=2.27,platform=Linux 4.10.13-1-ARCH x86_64)
        (hound) lib/hound/request_utils.ex:57: Hound.RequestUtils.handle_response/3

I can see you are using recent chrome with outdated chromedriver. When you update to 2.29 does the problem remain?

Actually I just tried with your set up and it seem to work for me well. Arch linux too, chromedriver from AUR. Hmm maybe you have the port 9515 closed on firewall?..

1 Like

i’ll double-check.

still not working

 iex(1)> use Hound.Helpers
Hound.Helpers
iex(2)> Hound.start_session   
"839ae83873de47afce97e272c4ab4587"
iex(3)> navigate_to("http://example.com/guestbook.html")
** (RuntimeError) no such session
  (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.10.13-1-ARCH x86_64)
    (hound) lib/hound/request_utils.ex:57: Hound.RequestUtils.handle_response/3

is your code identical to mine?

chromium:

$ chromedriver 
Starting ChromeDriver 2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5) on port 9515
Only local connections are allowed.

I 'm getting the same error,
Searching on the web, it’s possible to the problem is related to (low)memory