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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Answers
    3976
    Vote Rating
    1334
      0  

    Default

    What do you mean empty content? An empty array or just send nothing?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Answers
    3976
    Vote Rating
    1334
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •