Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resteasy client Error "The request sent by the client was syntactically incorrect" when using Hebrew  RSS feed

 
daphna deutsch
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an apache server with rest APIs accepting Json object and produce Json object.
testing the sever using Chrome advanced rest client show no problems.

I then tried to create a jave client, using org.jboss.resteasy:


When trying to use this method to send object containing Hebrew characters such as the following JSON:


I'm getting the error code HTTP Status 400, error message: The request sent by the client was syntactically incorrect.
I never reach the server.

Sending the same object using Chrome advanced rest client works fine.
Sending it with English name also works.

The API:


thanks!
 
Mohamed Sanaulla
Bartender
Posts: 3169
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you setting the Character Set while using RESTEasy based Java Client?
 
daphna deutsch
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure where to set it?
I tried to add in the request header but it didn't help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!