Hi all! I found there is some trouble about `/rela...
# troubleshoot
d
Hi all! I found there is some trouble about
/relationships
API. The official demo is
Copy code
curl --location --request GET --header 'X-RestLi-Protocol-Version: 2.0.0' '<http://localhost:8080/relationships?direction=OUTGOING&urn=urn%3Ali%3Achart%3Acustomers&types=List(OwnedBy)>'
But if the value of urn contains "(", it will throw error "`org.neo4j.driver.exceptions.ClientException:Invalid input '('`". And the urn of dataset and dataJob both contain '(' and ')'. Is this an issue?
b
hey Wulianghui! so you get that error abvoe when running that curl request we have in our docs? when I run it I get no issue. I don't believe the urn in the example actually contains "(" or ")" that's in an additional query param for
types
b
This is concerning. @bulky-soccer-26729 we can try to reproduce this by deploying datahub with Neo4j and then ensure that making this query works. I also have not seen this issue before, however.
d
@bulky-soccer-26729. The request in the docs is ok, because there is no '(' in the value of urn. But the parameter of my urn is a dataset, and it led to the trouble above!
It seems like '(' is not allowed as a node in the query language of neo4j.
b
oh i'm sorry I misunderstood! yeah that's definitely an issue and something I'll look into
b
Please provide the full CURL you are executing so we can test!
d
curl --location --request GET --header 'X-RestLi-Protocol-Version: 2.0.0' '<http://10.1.189.65:8080/relationships?direction=OUTGOING&urn=urn%3Ali%3AdataJob%3A(urn%3Ali%3AdataFlow%3A(spark%2Cwlh-test-LINEAGE-3datasets%2Clocal)%2CQueryExecId_4)&types=List(Consumes)>'
In this query, I want to query the dataset which the dataJob consumes!