Get all roles with an action using RolesManager.getall

Currently trying to retrieve all roles created in the tenant, so I can compare the names and retrieve the role id to build an array to assign the roles to the new user being added through sso.

here’s my call

        const res = await rolesManager.getAll(params)
    console.log('response', res)
  } catch (err){
    console.log(err)
  }

getting this error

TypeError: this.parseError is not a function at RolesManager.request (/data/layers/layers-460q/460qCOy6-swrjzG77d8o3m48FJ0NqkUOKZONsdb5e0c/node_modules/auth0/dist/cjs/lib/runtime.js:119:34) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RolesManager.getAll (/data/layers/layers-460q/460qCOy6-swrjzG77d8o3m48FJ0NqkUOKZONsdb5e0c/node_modules/auth0/dist/cjs/management/__generated/managers/roles-manager.js:140:26) at async exports.onExecutePostLogin (/data/io/node18-actions/095f75fe-7206-4502-95fa-67b4cdbd6fb1/webtask.js:36:21) at async /data/io/4c5ffe583764d13081fab0904f70198fb32d3cd2.js:7:921

any help will be appreciated