<div dir="ltr">







<p class="" style>Hello Guys</p><p class="" style>Writing code for ProDoctor demo, on client side, I&#39;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 &quot;application/json; charset=utf-8&quot; whereas on routes (backend) only &quot;application/json&quot; is set which causes this exception:</p>
<p class="">[application/json].&#39;: java.lang.RuntimeException: AG_CONTROLLER000012: No Consumer found for Parameter: &#39;Parameter[type=ENTITY, type=class org.aerogear.prodoctor.model.SaleAgent]&#39;. The registered Consumers were: &#39;[JsonConsumer[mediaType=application/json]]&#39;. 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  &quot;application/json; charset=utf-8&quot; and  &quot;application/json&quot;. /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>