{"action":"created","issue":{"url":"https://api.github.com/repos/neo4jrb/neo4j-core/issues/229","labels_url":"https://api.github.com/repos/neo4jrb/neo4j-core/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j-core/issues/229/comments","events_url":"https://api.github.com/repos/neo4jrb/neo4j-core/issues/229/events","html_url":"https://github.com/neo4jrb/neo4j-core/issues/229","id":109573386,"number":229,"title":"response 403 when generating scaffold","user":{"login":"vikigenius","id":12724810,"avatar_url":"https://avatars.githubusercontent.com/u/12724810?v=3","gravatar_id":"","url":"https://api.github.com/users/vikigenius","html_url":"https://github.com/vikigenius","followers_url":"https://api.github.com/users/vikigenius/followers","following_url":"https://api.github.com/users/vikigenius/following{/other_user}","gists_url":"https://api.github.com/users/vikigenius/gists{/gist_id}","starred_url":"https://api.github.com/users/vikigenius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikigenius/subscriptions","organizations_url":"https://api.github.com/users/vikigenius/orgs","repos_url":"https://api.github.com/users/vikigenius/repos","events_url":"https://api.github.com/users/vikigenius/events{/privacy}","received_events_url":"https://api.github.com/users/vikigenius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T21:15:27Z","updated_at":"2015-10-04T09:08:11Z","closed_at":null,"body":"I already have neo4j server up and running correctly on http://localhost:7474\r\n\r\nWhen i use rails generate scaffold\r\n\r\nI get the following error: **neo4j-core-5.1.6/lib/neo4j-server/cypher_session.rb:51:in `open': Server not available on http://localhost:7474 (response code 403) (RuntimeError)**\r\n\r\nI tried disabling password authentication and still the same error pops up:\r\nIs it to do with the fact that i am behind a http proxy  (But i do have the bash proxy environment variables set).\r\n\r\nBelow is my application.rb file:\r\n\r\n    require File.expand_path('../boot', __FILE__)\r\n\r\n    require \"rails\"\r\n    # Pick the frameworks you want:\r\n    require \"active_model/railtie\"\r\n    require \"active_job/railtie\"\r\n    # require \"active_record/railtie\"\r\n    require \"action_controller/railtie\"\r\n    require \"action_mailer/railtie\"\r\n    require \"action_view/railtie\"\r\n    require \"sprockets/railtie\"\r\n    require 'neo4j/railtie'\r\n    require \"rails/test_unit/railtie\"\r\n\r\n    # Require the gems listed in Gemfile, including any gems\r\n    # you've limited to :test, :development, or :production.\r\n    Bundler.require(*Rails.groups)\r\n\r\n    module TestdbApp\r\n      class Application < Rails::Application\r\n\r\n        config.generators do |g|\r\n          g.orm             :neo4j\r\n        end\r\n\r\n\r\n        #config.neo4j.session_options = { basic_auth: { username: 'neo4j', password: 'dbpasswd'} } \r\n        config.neo4j.session_type = :server_db \r\n        config.neo4j.session_path = 'http://localhost:7474'\r\n        # Configure where the embedded neo4j database should exist\r\n        # Notice embedded db is only available for JRuby\r\n        # config.neo4j.session_type = :embedded_db  # default #server_db\r\n        # config.neo4j.session_path = File.expand_path('neo4j-db', Rails.root)\r\n\r\n        # Settings in config/environments/* take precedence over those specified here.\r\n        # Application configuration should go into files in config/initializers\r\n        # -- all .rb files in that directory are automatically loaded.\r\n\r\n        # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.\r\n        # Run \"rake -D time\" for a list of tasks for finding time zone names. Default is UTC.\r\n        # config.time_zone = 'Central Time (US & Canada)'\r\n\r\n        # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.\r\n        # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]\r\n        # config.i18n.default_locale = :de\r\n      end\r\n    end\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/neo4jrb/neo4j-core/issues/comments/145329266","html_url":"https://github.com/neo4jrb/neo4j-core/issues/229#issuecomment-145329266","issue_url":"https://api.github.com/repos/neo4jrb/neo4j-core/issues/229","id":145329266,"user":{"login":"cheerfulstoic","id":301415,"avatar_url":"https://avatars.githubusercontent.com/u/301415?v=3","gravatar_id":"","url":"https://api.github.com/users/cheerfulstoic","html_url":"https://github.com/cheerfulstoic","followers_url":"https://api.github.com/users/cheerfulstoic/followers","following_url":"https://api.github.com/users/cheerfulstoic/following{/other_user}","gists_url":"https://api.github.com/users/cheerfulstoic/gists{/gist_id}","starred_url":"https://api.github.com/users/cheerfulstoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheerfulstoic/subscriptions","organizations_url":"https://api.github.com/users/cheerfulstoic/orgs","repos_url":"https://api.github.com/users/cheerfulstoic/repos","events_url":"https://api.github.com/users/cheerfulstoic/events{/privacy}","received_events_url":"https://api.github.com/users/cheerfulstoic/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T09:08:11Z","updated_at":"2015-10-04T09:08:11Z","body":"I'm guessing that it's probably the proxy.  First I should ask: Did you restart after disabling Neo4j's auth?\r\n\r\nCan you try it without a proxy to debug?\r\n\r\nAlso if auth is enabled you may want to log into the neo4j web console and change the default password because Neo4j won't allow you to login via the HTTP endpoints (like Neo4j.rb does) until you've done that"}}