You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and in function yaml, I've added private as true for respective method.
At build time, it is throwing this error.
Error:
TypeError: apiKeyDefinition[name].forEach is not a function
at /codebuild/output/src276954272/src/thirdparty-api/node_modules/serverless/lib/plugins/aws/package/compile/events/api-gateway/lib/api-keys.js:49:34
at Array.forEach (<anonymous>)
at AwsCompileApigEvents.compileApiKeys (/codebuild/output/src276954272/src/thirdparty-api/node_modules/serverless/lib/plugins/aws/package/compile/events/api-gateway/lib/api-keys.js:39:15)
at AwsCompileApigEvents.tryCatcher (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/codebuild/output/src276954272/src/thirdparty-api/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:464:21)
The text was updated successfully, but these errors were encountered:
satyami2tech
changed the title
TypeError: apiKeyDefinition[name].forEach is not a functio
TypeError: apiKeyDefinition[name].forEach is not a function
Aug 10, 2022
Here is my code for setting up API keys.
and in function yaml, I've added private as true for respective method.
At build time, it is throwing this error.
The text was updated successfully, but these errors were encountered: