Results 1 to 2 of 2

Thread: Restful Store with autosave=true sends multiple POST (add) requests to the server

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2011
    Vote Rating

    Default Restful Store with autosave=true sends multiple POST (add) requests to the server

    This is really easy to duplicate. Create a store that is restful and hooked up to your server. Set the store to autosave=true

    * set a break point in your server's POST handler
    * add a new element to the store
    * observe that it sends a POST to your server
    * now update another element in your store
    * observe that it sends a PUT for the change and a POST for the previous add.
    * now let your server run and you will indeed see that the POST happens twice and your poor server will likely add the element twice because the server is responsible for creating the record ID.

    So when this happens we see that for these two changes to the store, it sends these three messages to the server:


    This has really bad consequences on the server. We found this when using our application of a WAN link so the response time of the server was slower than the user clicking on another UI element that updated the store. This is super easy to reproduce.

    I would have expected the store to know that it already sent the POST and that the POST has not yet timed out.


  2. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    St. Louis, MO
    Vote Rating


    I am having this same problem in Ext 4.1. The Restful Store has autosync = true but sends multiple POST request to the server on every other add. Any update on this bug?

Similar Threads

  1. Replies: 7
    Last Post: 14 Aug 2011, 8:40 AM
  2. [OPEN] [OPEN]Store autoSave: true does not work
    By oe.elvik in forum Ext:Bugs
    Replies: 3
    Last Post: 13 Mar 2011, 1:41 PM
  3. Replies: 0
    Last Post: 27 Feb 2011, 11:02 AM
  4. Replies: 2
    Last Post: 21 Jan 2011, 1:58 PM
  5. Replies: 6
    Last Post: 20 May 2010, 7:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts