Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-30-2020 08:33 AM
Windows 10
Chrome browser
Neo4j: 4.0.7
I can successfully open my database from the Neo4j Desktop and from the web browser at http://localhost:7474/.
However, when I attempt to navigate to the URL below, after the login prompt, the response is
No webpage was found for the web address: http://localhost:7474/db/data/
HTTP ERROR 404
The error first occurred when the sample code Neo4jDotNetDemo in the WebApiConfig,cs tried to create a new GrpahClient.
Thoughts on resolving this issue?
Thanks!
07-30-2020 11:22 AM
If you're using neo4j 4.x the endpoints have changed, the rest api is replaced by the http api.
See: https://neo4j.com/docs/http-api/current/introduction/
08-01-2020 04:06 AM
I appreciate your response but after reading the doc, I'm unsure how that helps resolve my issue.
The Neo4jDotNetDemo I downloaded from the neo4j website is throwing the exception in WebApiConfig.cs on the Connect statement:
//Use an IoC container and register as a Singleton
var url = ConfigurationManager.AppSettings["GraphDBUrl"];
var user = ConfigurationManager.AppSettings["GraphDBUser"];
var password = ConfigurationManager.AppSettings["GraphDBPassword"];
var client = new GraphClient(new Uri(url), user, password);
client.Connect();
The web.config contains the url: http://localhost:7687/db/data
If the URL has changed, what should it be?
and perhaps, someone should modify\y the demo code.
Thanks
:
08-01-2020 05:05 AM
Are you referring to the project
This seems to be pretty old project and might work with Neo4j 3.x and uses HTTP endpoints.
Better option would be to use this project
This client uses bolt protocol and preferred communication method for clients.
08-03-2020 07:16 AM
Thank you for your response and suggestion.
All the sessions of the conference are now available online