aio-cli icon indicating copy to clipboard operation
aio-cli copied to clipboard

state-lib does not work in a stage env

Open purplecabbage opened this issue 2 years ago • 2 comments

Expected Behaviour

works exactly like prod

Actual Behaviour

as soon as I call const state = await stateLib.init() my action exits, and returns a 204, no logs are produced.

Reproduce Scenario (including but not limited to)

create a project in stage ... npm install statelib require it const stateLib = require('@adobe/aio-lib-state') call init const state = await stateLib.init() AIO_CLI_ENV=stage aio app run

commenting out the init call, my action returns a response and a 200, as soon as init is called, things break.

Environment Info

  System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 676.63 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: Not Found
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
  Virtualization:
    Docker: 20.10.17 - /usr/local/bin/docker
  npmGlobalPackages:
    @adobe/aio-cli: 9.1.1

Sample Code that illustrates the problem

Logs taken while reproducing problem

NONE!!!

purplecabbage avatar Mar 09 '23 00:03 purplecabbage

actually, putting all of this in the try/catch ... I get a 500 53444-jessestatetest-stage/dx-excshell-1/generic:72ae017a975f4f86ae017a975f8f8602 2023-03-09T00:30:39.817Z stdout: 2023-03-09T00:30:39.817Z [main /53444-jessestatetest-stage/dx-excshell-1/generic] error: [TvmLib:ERROR_RESPONSE] error response from TVM server with status code: 500 53444-jessestatetest-stage/dx-excshell-1/generic:6eae3dc73b9c4ee3ae3dc73b9c3ee3b7 2023-03-09T00:30:52.486Z stdout: 2023-03-09T00:30:52.486Z [main /53444-jessestatetest-stage/dx-excshell-1/generic] error: [TvmLib:ERROR_RESPONSE] error response from TVM server with status code: 500 53444-jessestatetest-stage/dx-excshell-1/generic:89685ca40e374df3a85ca40e371df357 2023-03-09T00:31:14.174Z stdout: 2023-03-09T00:31:14.173Z [main /53444-jessestatetest-stage/dx-excshell-1/generic] error: [TvmLib:ERROR_RESPONSE] error response from TVM server with status code: 500

purplecabbage avatar Mar 09 '23 00:03 purplecabbage

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-2120

aiojbot avatar Mar 09 '23 01:03 aiojbot