Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-211

Do not try to parse response when status is no content in nuxeo-resource

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Core

      Description

      In nuxeo-resource element, we try to parse the response even if the returned http status code is 204 (No content).

      It results in an error

      SyntaxError: Unexpected end of JSON input
      

      when using nuxeo-resource on "/directory" and calling remove (DELETE)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: