Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state-lib does not work in a stage env #399

Open
purplecabbage opened this issue Mar 9, 2023 · 2 comments
Open

state-lib does not work in a stage env #399

purplecabbage opened this issue Mar 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@purplecabbage
Copy link
Member

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 purplecabbage added the bug Something isn't working label Mar 9, 2023
@purplecabbage
Copy link
Member Author

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

@aiojbot
Copy link

aiojbot commented Mar 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants