AnsweredAssumed Answered

RESTFul Web-service AFX response issue

Question asked by Yogesh Mishra on Jun 5, 2017
Latest reply on Jun 8, 2017 by Yogesh Mishra

Hi All,

Our aveksa  Version: 6.9.1.127678 P22

We are using REST api POST method to create new user in MongoDB application which support JSON.

 

We are able to create/update user but having issue in getting response from the application in AFX. We are getting proper response while testing with RESTClient but in AFX it is giving below error messages when we configure different Content-Type and Accept values:

 

Request Headers
Content-TypeAcceptError
1application/json;charset=UTF-8application/json;charset=UTF-8Error code = 2
Failure - Error processing RESTful web service response
Cause:
Error processing RESTful web service response: java.lang.IllegalStateException: Expected application/json but received application/json;charset=UTF-8
2application/jsonapplication/json;charset=UTF-8Error code = -1
javax.script.ScriptException: java.lang.NumberFormatException: null
Cause:
Stack Trace:
org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:148)
3application/json;charset=UTF-8application/jsonError code = 2
Failure - Error processing RESTful web service response
Cause:
Error processing RESTful web service response: java.lang.IllegalStateException: Expected application/json but received application/json;charset=UTF-8

 

Please let me know if there is any configuration changes required.

 

Thanks

Yogesh Mishra 

Outcomes