I'm making a microservice using App builder.
And for my logiс I use state
const stateLib = require('@adobe/aio-lib-state')
...
const state = await stateLib.init()
await stateLib.put('key', params, { ttl: -1 })
console.log('state info')
...
In order for me to test (since aio-lib-state does not work locally), I deployed the application
aio app deploy
Next, I send a request to the microservice and receive the following error:
2023-11-24T17:19:17.970Z stdout: AioCoreSDKError [TvmLibError]: [TvmLib:ERROR_BAD_ARGUMENT] "ow.auth" is required
at new <anonymous> (/nodejsAction/cfE17S6i/index.js:17263:9)
at new TvmClient (/nodejsAction/cfE17S6i/index.js:18319:19)
at Function.init (/nodejsAction/cfE17S6i/index.js:18382:12)
at Object.init (/nodejsAction/cfE17S6i/index.js:23832:27)
at NodeActionRunner.main [as userScriptMain] (/nodejsAction/cfE17S6i/index.js:266164:31)
at /nodejsAction/services/runner.js:111:45
at new Promise (<anonymous>)
at NodeActionRunner.run (/nodejsAction/services/runner.js:104:16)
at doRun (/nodejsAction/services/service.js:256:31)
at runCode (/nodejsAction/services/service.js:198:20) {
code: 'ERROR_BAD_ARGUMENT',
sdk: 'TvmLib',
sdkDetails: { config: { ow: [Object] } }
Please tell me how to fix it, I can’t find where to get access for ow
Thanks!