<div dir="ltr">Burr,<div>I&#39;ve added some logs statements on the client and basically it seems it can not parse the response from the server : </div><div><br></div><div><div>I/Web Console( 1386): textStatus: parsererror at file:///android_asset/www/js/index.js:103</div>
<div>I/Web Console( 1386): error: SyntaxError: Unexpected end of input at file:///android_asset/www/js/index.js:104</div></div><div><br></div><div>If I do a CURL like this : </div><div>curl -v -b cookies.txt -c cookies.txt -H &quot;Accept: application/json&quot; -H &quot;Content-type: application/json&quot; -X POST -d &#39;{&quot;phoneNumber&quot;:&quot;1234567890&quot;,&quot;email&quot;:&quot;<a href="mailto:newTest@test.com">newTest@test.com</a>&quot;,&quot;name&quot;:&quot;newTest&quot;}&#39; <a href="http://agmobile-html5.rhcloud.com/rest/forge/members">http://agmobile-html5.rhcloud.com/rest/forge/members</a><br>
</div><div><br></div><div>I got an correct answer but the content type is &#39;text/plain&#39; , please check your rest endpoint to be sure it&#39;s producing json as output, that should solve your issue.</div><div><br></div>
<div>Could you also paste the commands you used in Forge to scaffold the REST endpoints so that we can check there hasn&#39;t been an incompatibility introduced ? </div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter <span dir="ltr">&lt;<a href="mailto:bsutter@redhat.com" target="_blank">bsutter@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>I am having a problem with pipe.save(), likely user error :-)</div><div><br></div><div>For some reason, the POST is occurring, the save seems to work but the error callback is invoked, not the success method.</div>
<div><br></div><div>And I am doing all of this in the context of our tooling which has some limitations (auto-closing console/firebug lite)</div><div><br></div><div><a href="http://screencast.com/t/gosd7Qnhz" target="_blank">http://screencast.com/t/gosd7Qnhz</a></div>
<div><br></div><div>REST endpoint:</div><div><a href="http://agmobile-html5.rhcloud.com/rest/forge/members" target="_blank">http://agmobile-html5.rhcloud.com/rest/forge/members</a></div><div>Use of Forge, with the Member.java entity to offer full CRUD capabilities</div>
<div><br></div><div>Sources:</div><div><a href="https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js" target="_blank">https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js</a></div><div><br>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>