Results 1 to 4 of 4

Thread: Bug? Responses with empty content are treated as not successful

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Answers
    1
    Vote Rating
    4
      0  

    Default Answered: Bug? Responses with empty content are treated as not successful

    Hello,
    Working with a store and a rest proxy, I found out that requests that return an empty content are treated as not successful. So, even if the server has actually replied with a "200 OK" status code but with empty content, the proxy acknowledge it as a failure.

    Is this the standard behavior or a bug?

    Thanks

  2. Probably is having a read error as it has nothing to read. Try sending an empty array (based on the rootProperty setting of the reader)

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    What do you mean empty content? An empty array or just send nothing?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Answers
    1
    Vote Rating
    4
      0  

    Default

    Just send nothing, only the status code: 200 OK, 201 Created, etc.

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Probably is having a read error as it has nothing to read. Try sending an empty array (based on the rootProperty setting of the reader)
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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