Expand my Community achievements bar.

SOLVED

aio rde cli login issue

Avatar

Level 5

i'm getting the below error when using aem:rde:install command - 

 

{
code: 'ERROR_LIST_PROGRAMS',
sdk: 'CloudManagerSDK',
sdkDetails: {
orgId: '123456789@AdobeOrg',
apiKey: 'aio-cli-console-auth',
accessToken: 'ey...',
url: 'https://cloudmanager.adobe.io/api/programs',
response: Response {
size: 0,
timeout: 0,
[Symbol(Body internals)]: [Object],
[Symbol(Response internals)]: [Object]
},
requestId: '123456789'
}
}

 

I am able to login to rde environment and developer console separately on the browser but not able to push packages.

Any help on this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I would suggest to get your access checked for 403 Forbidden Error.

It might just be possible that you are using a different account to access the CLI. This sometimes can happen if you are using multiple IDs which are associated with SSO for Adobe applications.

 

If you want to refresh simply try the below commands -

aio logout

aio login

The browser sign in window for CLI should appear.

View solution in original post

6 Replies

Avatar

Community Advisor

Can you post the complete log from the command prompt?

The response size 0 indicates that the request might be giving 200 OK.

Can you check if the Cloud Environment/Instance was on maintenance mode?

Avatar

Level 5

the cloud instance had no notification as such

here is the complete log - 

PS C:\Proj\Repo\aem> aio aem:rde:install .\all\target\aem.all-0.0.1-SNAPSHOT.zip
AioCoreSDKError [CloudManagerError]: [CloudManagerSDK:ERROR_LIST_PROGRAMS] Cannot retrieve programs: https://cloudmanager.adobe.io/api/programs (403 Forbidden)
at new <anonymous> (C:\Users\admin\AppData\Local\@adobe\aio-cli\node_modules\@adobe\aio-lib-core-errors\src\AioCoreSDKErrorWrapper.js:33:9)
at C:\Users\admin\AppData\Local\@adobe\aio-cli\node_modules\@adobe\aio-lib-cloudmanager\src\index.js:198:20
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
FkZGl0aW9uYWxfaW5mby5wcm9qZWN0ZWRQcm9kdWN0Q29udGV4dCJ9.Zs2qek8iNKElXtmECb90-VqiiBjWSD5tiG3eVXU-Ln9fNpTpBCJI9GU8OGi6-5Toq8Z2JIDqA9m0e2VnMknfz3FU4--v5dOWma5xKTQ6i3H2lFVtJhr8dTGm0Zx8GclJIe6eihF-hrw8LXl_SZmfNnbDQAQ43gZ0mJjMSrxS_eIomWTvFPMpontlglZ032K15DRbDqJxsigS0qPITgXVjYi5Mz0QHCV28gg',
url: 'https://cloudmanager.adobe.io/api/programs',
response: Response {
size: 0,
timeout: 0,
[Symbol(Body internals)]: [Object],
[Symbol(Response internals)]: [Object]
},
requestId: 'CrcNDPhdNjdTUnN4wl5I8RmFu2Y8ejQj'
}
}

Avatar

Correct answer by
Community Advisor

I would suggest to get your access checked for 403 Forbidden Error.

It might just be possible that you are using a different account to access the CLI. This sometimes can happen if you are using multiple IDs which are associated with SSO for Adobe applications.

 

If you want to refresh simply try the below commands -

aio logout

aio login

The browser sign in window for CLI should appear.

Avatar

Employee Advisor

Hi,

 

The error you're encountering with the aem:rde:install command suggests an issue with the program configuration or authentication. To resolve it:

  1. Verify program configuration: Double-check the program ID, organization ID, and API key used in the Cloud Manager SDK configuration.

  2. Check authentication: Ensure your authentication credentials, particularly the access token, are valid and not expired.

Avatar

Level 5

i have already configured the correct org id, env id, program id. The access token is still valid too.

Avatar

Level 2

Sometimes 403 Forbidden can be the case when you don't specifically have access to the developer console.
Cloud Manager->Environments->RDE->Developer Console.
If you don't have access, contact your admin.