rockcarver / frodo-cli

A CLI to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.
MIT License
19 stars 18 forks source link

Unable to export IDM Configurations from Encore instance #197

Closed jclayton40 closed 1 year ago

jclayton40 commented 1 year ago

Frodo CLI version

Provide output of frodo -v

frodo -v You seem to be running the NPM package Installed versions: cli: v0.21.1 lib: v0.18.3 node: v16.15.1

Describe the issue

A clear and concise description of what the issue is.

When attempting to export IDM configurations as separate files, you receive the following error output:

frodo idm export -A -D idm/ $source $realm $user $pass


frodo idm export -A -D idm/ $source $realm $user $pass Connected to https://hc71.encore.forgerock.com/am [/] as user forgeadmin [AxiosError: Request failed with status code 403] { code: 'ERR_BAD_REQUEST', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 30000, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' } }, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, /', 'User-Agent': '@rockcarver/frodo-lib/0.18.3', 'X-ForgeRock-TransactionId': 'frodo-7b231068-f911-4390-9ceb-b4266c5a2dfc', 'Content-Type': 'application/json' }, httpAgent: Agent { _events: [Object: null prototype] { free: [Array], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: [Object: null prototype] { maxSockets: 100, maxFreeSockets: 10, timeout: 30000, freeSocketTimeout: 30000, keepAlive: true, socketActiveTTL: 0, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: 100, maxFreeSockets: 10, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 0, createSocketCount: 0, createSocketCountLastCheck: 0, createSocketErrorCount: 0, createSocketErrorCountLastCheck: 0, closeSocketCount: 0, closeSocketCountLastCheck: 0, errorSocketCount: 0,