Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Unexpected error detected in bolt session #11972
Unexpected error detected in bolt session
Steps to reproduce
No error message
I think this error is logged because neo4j-browser tries to log in using credentials stored in browser's local storage. Username-password box is shown when credentials to not match and this error is logged. Local storage is per-page scheme, host an port. Auth information from local storage can thus clash if multiple different neo4j databases are started on the same machine with same HTTP listen address settings.
This error is completely harmless in such scenario. It can only pollute the log a bit. I guess we could clean the local storage on an unsuccessful auth attempt. This will make the error appear only once in the log.
What do you think @oskarhane?
Instead of closing the issue, and scaring the users that encounter this error in logs, don't you think that:
org.neo4j.bolt.security.auth.AuthenticationException should be handled as a org.neo4j.bolt.v1.runtime.BoltConnectionAuthFatality in org.neo4j.bolt.v1.runtime.BoltStateMachine.handleFailure(BoltStateMachine, Throwable, Neo4jError)
Here is the log: