state-lib does not work in a stage env
- Dominant language
- JavaScript
- Stars
- 95
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
### 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!!!
Contributor guide
Assessment
This issue has not been assessed yet.