Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Error on Query.ps1 #27

Open
achile81 opened this issue Mar 8, 2020 · 6 comments
Open

Error on Query.ps1 #27

achile81 opened this issue Mar 8, 2020 · 6 comments

Comments

@achile81
Copy link

achile81 commented Mar 8, 2020

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

@gdedrouas
Copy link
Contributor

What is the command line ?

@ghost
Copy link

ghost commented Sep 9, 2020

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.

@novasurf74
Copy link

novasurf74 commented Dec 15, 2020

Hi,

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

Can you help us?

Thank's

@spicyjuice
Copy link

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

Thx

@mdoidy
Copy link

mdoidy commented Apr 29, 2021

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

@IamPhilG
Copy link

IamPhilG commented May 4, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants