adobe / adobe/aio-cli

App init in ims-stage fails

Open
#812 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
95
Forks
45
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour

- echo AIO_CLI_ENV=stage
- aio login -f
- aio app init
- App is created, workspace is selected, audit log updated

### Actual Behaviour

✔ Finished running template @adobe/generator-app-excshell
› Error: [CoreConsoleAPISDK:ERROR_GET_WORKSPACES_BY_PROJECT_ID] 401 - Unauthorized
› ({"title":"ErrInvalidOauthToken","status":401,"error_code":401013,"message":"Oauth token is not valid"}) - Headers: [
› x-request-id=ce3d4737-0c57-4232-a653-88586fb211db ]

Because .env gets overwritten we break

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

#### Environment Info
```
System:
OS: macOS 26.4.1
CPU: (16) arm64 Apple M4 Max
Memory: 497.42 MB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.21.1 - /Users/jessem/.nvm/versions/node/v22.21.1/bin/node
Yarn: Not Found
npm: 11.12.1 - /Users/jessem/.nvm/versions/node/v22.21.1/bin/npm
Virtualization:
Docker: 28.5.1 - /usr/local/bin/docker
npmGlobalPackages:
@adobe/aio-cli: 11.0.2
```
#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.