Closed andreycha closed 4 years ago
Can you use the BoltGraphClient
?
Yes, that's what I wanted to try next. Will it help?
It should give you the proper error message - and it should only be one line to change
It will take me some time. Once I switched to bolt, some queries started to fail at deserialization stage. Will get back to you once I'm done with it.
Hi,
I've ran into the following issue: when I execute query that fails for some reason (DB constraint in my case), library does not return error details:
I use http connection string, and when I execute same query against
/db/data/cypher
, endpoint actually returns 400 Bad Request with error details (same as in Neo4j logs):Neo4j version: 3.5.12 Enterprise Neo4jClient version: 3.1.0.6
Could you please advise?
UPDATE
Looks like the issue might be in this line: https://github.com/Readify/Neo4jClient/blob/3d58def38afd3b4a029f97a4cae247ef2755a5ba/Neo4jClient.Shared/Execution/HttpResponseMessageExtensions.cs#L51
Library expects content type to be "application/json", and if it's not provided, treats response as 500. Neo4j
/db/data/cypher
responds with "application/json;charset=utf-8".It's only not clear why raw response is empty: https://github.com/Readify/Neo4jClient/blob/3d58def38afd3b4a029f97a4cae247ef2755a5ba/Neo4jClient.Shared/Execution/HttpResponseMessageExtensions.cs#L38