Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error message when attempting to connect to HTTP server #517

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

StephenCathcart
Copy link
Contributor

@StephenCathcart StephenCathcart commented Jul 19, 2023

The driver already throws an appropriate error when the server returns HTTP. This PR makes the error message more explicit to help with debugging.

2023-07-20 09:15:50.355459 Response: {"data":{"code":"","errorType":"server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)","id":"2","msg":"server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)"},"name":"DriverError"}

@StephenCathcart
Copy link
Contributor Author

@StephenCathcart StephenCathcart merged commit 72512ea into neo4j:5.0 Jul 20, 2023
5 checks passed
@StephenCathcart StephenCathcart deleted the fix/http-response branch July 20, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants