Closed simpsonjulian closed 6 years ago
Hey @simpsonjulian
Thanks for the report. I think this could actually be fixed if we put a require 'uri'
at the top of this file:
https://github.com/neo4jrb/neo4j-core/blob/master/lib/neo4j/core/cypher_session/adaptors/http.rb
(mainly putting that info there to remind myself when I come back to this issue ;) )
Does it work without bundler
if you put require 'uri'
at the top of your code?
Explination: On this line we check to see if the URI (gotten by calling URI(url)
with the given URL) is URI::HTTP
. If you only require uri/http
it doesn't work because it's an https
schema (you need to require 'uri/https`` specifically or
require 'uri'` to get everything).
Hi Brian, you're correct: that did make the issue disappear. I made a PR for you. Cheers!
I wrote an app. Running migrations locally worked very well (
rake neo4j:migrate
) etc (nice to have migrations in a driver, BTW). Nothing blew up so I carried on coding.Went to deploy on a production system with an SSL cert, and I started getting
Invalid URL
messages.Can't get to the bottom of it, but I noticed that it's only when I'm running without bundler (which I got sloppy about because it worked on the local Neo4j server).
Running without bundler:
Running with bundler:
At first I assumed that I had different gem versions in system.
It would be better for first time users who make the same mistake to get an error like "Use bundler to make sure your dependencies work" rather than the first error (which I went down the rabbit hole on).