Restlet POSTing JSON to Appengine error

前端 未结 2 656
孤独总比滥情好
孤独总比滥情好 2020-12-11 10:23

We have a small app with Restlet on the GAE server and GWT and Android clients. Restlet serves GWT-serialized replies to GWT clients and JSON to Android clients.

All

2条回答
  •  猫巷女王i
    2020-12-11 11:21

    You encountered a limitation of GAE that several Restlet users faced.

    Some time ago, GAE stopped supporting accepting chunked HTTP entity. We reproduced this issue with both POST and PUT and raw GAE Servlets, so this isn't Restlet related. See GAE issue: http://code.google.com/p/googleappengine/issues/detail?id=129

    The only workaround we found is to not chunk entities, meaning being able to compute their size in advance.

    In Restlet 2.1 M3 version that we just released, we added a simple "entityBuffering" property on ClientResource to facilitate this (set to 'false' by default).

    We are in the process of upgrading our "First Application" example to illustrate the workaround. We also had to cope with GWT 2.2 breaking compatibility with its previous GWT 2.1 core API, so Restlet 2.1 will only work on GWT.

    Addition details are available on this page: http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html

    Best regards,

    Jerome

    Restlet ~ Founder and Technical Lead ~ http://www.restlet.org

    Noelios Technologies ~ http://www.noelios.com

提交回复
热议问题