2

I'm trying to store a text that contains special characters like (ç,é,è,à ...) in neo4j from java using the REST api but i'm getting the following error :

{"results":[],
"errors":[{"code":"Neo.ClientError.Request.InvalidFormat","message":"Unable to deserialize request: Invalid UTF-8 start byte 0xfd\n at [Source: HttpInputOverHTTP@b15eccb; line: 1, column: 1237]"}]}
  • I already setted the charset to UTF-8 in the header of my request
  • I did also add the following line to the neo4j.conf file , section JVM parameters :

dbms.jvm.additional=-Dfile.encoding=UTF8

but this still getting the same error.

does anyone have a solution for this ?

2
  • What method are you using to send to the API? Can you include the exact curl command / shell script / other code that is sending to it so your issue can be reproduced? Commented Apr 12, 2018 at 15:23
  • You should check out this question. The error says you are trying to use a non-UTF-8 complaint byte string. (Note, Java strings are UTF-16). You should validate the input before passing it to Neo4j. Commented Apr 16, 2018 at 20:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.