Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-11

Pass the json error in new callback parameter for jquery javascript client

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.23.0
    • Component/s: jQuery
    • Tags:
    • Sprint:
      TGV 7.1-7
    • Story Points:
      3

      Description

      When making request with jquery nuxeo client, the error passing to the callback is only showing related message to the http code error.

      For instance, when making a failing GET:

      nuxeo.js -> L549: callback(errorThrown, null, jqXHR)
      -> errorThrown is only the code http message (e.g.: 404 -> Not found)
      

      We could pass the jqXHR.responseText to pass the entire json error to the callback:

      responseText: "{"entity-type":"exception","code":null,"status":404,"message":"user does not exis...
      

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: