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

Unable to fetch directory entries when using request method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.18.0
    • Fix Version/s: 4.0.0
    • Component/s: Node.js

      Description

      When using the following to fetch directory entries

      nuxeo.request('directory/nature')
        .get()
        .then(function(data) {
          console.log(JSON.stringify(data.entries, null, 2))
        })
      

      the user gets the following error

      /Users/nicolepeacock/Documents/nuxeo_js_client_test/node_modules/nuxeo/lib/directory/entry.js:24
        const { serverVersion } = this._directory._nuxeo;
                             
      
      TypeError: Cannot read property '_nuxeo' of undefined
        at new DirectoryEntry (/Users/nicolepeacock/Documents/nuxeo_js_client_test/node_modules/nuxeo/lib/directory/entry.js:24:47)
      

      However, using the directory method works.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: