AD-control-paths icon indicating copy to clipboard operation
AD-control-paths copied to clipboard

Error on Query.ps1

Open achile81 opened this issue 6 years ago • 6 comments

ERROR ON QUERY THE GRAPH DATABASE:

[!]Neo4j returned an error: Unable to deserialize request: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value at [Source: HttpInputOverHTTP@3e538d5d[c=204,q=0,[0]=null,s=STREAM]; line: 1, column: 33] Exiting

achile81 avatar Mar 08 '20 02:03 achile81

What is the command line ?

gdedrouas avatar Mar 18 '20 08:03 gdedrouas

I'm hitting the same issue.

The command line I used was .\Query.ps1 -search "cn=administrateurs" and the error I got was

[!]Neo4j returned an error:
Unable to deserialize request: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
 at [Source: HttpInputOverHTTP@3d88bcf1[c=201,q=0,[0]=null,s=STREAM]; line: 1, column: 33]
Exiting

My Active Directory is setup in french, this may be related.

ghost avatar Sep 09 '20 13:09 ghost

Hi,

I'm hitting the same issue that Cyrtiac. But my command is .\Query.ps1 -quick -neo4jPort 7475

Can you help us?

Thank's

novasurf74 avatar Dec 15 '20 14:12 novasurf74

Hi, I have the same issue :( Any idea?

Thx

spicyjuice avatar Jan 07 '21 10:01 spicyjuice

I had the same issue and I managed to fix it by removing all the return chars within each $Body=... line

mdoidy avatar Apr 29 '21 15:04 mdoidy

I had the same issue The removal of return chars were not enough even if it has been added to the query.ps1 script. I then rewrote the lines 98 to 105 in query.ps1 as followed:

$Body = @" 
{"statements":[{"statement" : "MATCH(n) WHERE n.name STARTS WITH `$searchedName WITH {id:ID(n),name:n.name} AS principal RETURN principal","parameters" : {"searchedName" : "$search"} }]}
"@ -replace "`r`n",""

And I have no more errors

IamPhilG avatar May 04 '21 13:05 IamPhilG