<div dir="ltr">
<p class="" style>Hello Guys</p><p class="" style>Writing code for ProDoctor demo, on client side, I'm using Xcode template for AGPush which is based on AFNetworking 121</p><p class="" style>When doing my login request in iOS I bumped into the issue of having content type set to "application/json; charset=utf-8" whereas on routes (backend) only "application/json" is set which causes this exception:</p>
<p class="">[application/json].': java.lang.RuntimeException: AG_CONTROLLER000012: No Consumer found for Parameter: 'Parameter[type=ENTITY, type=class org.aerogear.prodoctor.model.SaleAgent]'. The registered Consumers were: '[JsonConsumer[mediaType=application/json]]'. Please add a Consumer for one the media types supported by the route: [application/json].</p>
<p class=""><span class="" style="white-space:pre">        </span>at org.jboss.aerogear.controller.util.ParameterExtractor.getConsumer(ParameterExtractor.java:152) [aerogear-controller-1.0.1.jar:1.0.1]</p><p class=""><span class="" style="white-space:pre">        </span>at org.jboss.aerogear.controller.util.ParameterExtractor.extractArguments(ParameterExtractor.java:70) [aerogear-controller-1.0.1.jar:1.0.1]</p>
<p class=""><br></p><p class="">I think we should support both "application/json; charset=utf-8" and "application/json". /shall we open a JIRA on AeroGear Controller to support both?</p><p class=""><br>
</p><p class="" style>wdyt?</p><p class="" style><br></p><p class="" style>Corinne</p><p class=""><br></p></div>