Issue with state in App Builder | Community
Skip to main content
Level 2
November 24, 2023
Solved

Issue with state in App Builder

  • November 24, 2023
  • 1 reply
  • 963 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EugeneKa1

I figured it out, to auth in to OpenWhisk need to use credentials for Adobe I/O Runtime.

By default, these constants are named like this:
- AIO_runtime_auth
- AIO_runtime_namespace

 

Regards,

Eugene

1 reply

EugeneKa1AuthorAccepted solution
Level 2
November 24, 2023

I figured it out, to auth in to OpenWhisk need to use credentials for Adobe I/O Runtime.

By default, these constants are named like this:
- AIO_runtime_auth
- AIO_runtime_namespace

 

Regards,

Eugene