Skip to content

App init in ims-stage fails #812

@purplecabbage

Description

@purplecabbage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions