<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">without even looking, that is what i was thinking the culprit is.<br><div><div>On Dec 16, 2013, at 7:01 AM, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Burr,<div>I've added some logs statements on the client and basically it seems it can not parse the response from the server :&nbsp;</div><div><br></div><div><div>I/Web Console( 1386): textStatus: parsererror at <a href="file:///android_asset/www/js/index.js:103">file:///android_asset/www/js/index.js:103</a></div>
<div>I/Web Console( 1386): error: SyntaxError: Unexpected end of input at <a href="file:///android_asset/www/js/index.js:104">file:///android_asset/www/js/index.js:104</a></div></div><div><br></div><div>If I do a CURL like this :&nbsp;</div><div>curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"phoneNumber":"1234567890","email":"<a href="mailto:newTest@test.com">newTest@test.com</a>","name":"newTest"}' <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 'text/plain' , please check your rest endpoint to be sure it'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't been an incompatibility introduced ?&nbsp;</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>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></body></html>