serverless-add-api-key icon indicating copy to clipboard operation
serverless-add-api-key copied to clipboard

Cannot read property 'config' of undefined

Open clocked0ne opened this issue 3 years ago • 0 comments

During deployment in Circle CI after updating to 4.2.0 I'm seeing the folowing error:

TypeError: Cannot read property 'config' of undefined
      at Object.addApiKey (/home/circleci/project/node_modules/serverless-add-api-key/src/helper.js:286:31)

It looks like if for whatever reason provider.sdk isn't populated then creating this new property for httpOptions throws the error

clocked0ne avatar Mar 16 '21 15:03 clocked0ne